0003-Add-extern-to-char-outfile-declaration-to-fix-build-.patch 934 B

123456789101112131415161718192021222324252627282930
  1. From eabcc8a6e39dc3c28faee3e04aa56cc65a38d65a Mon Sep 17 00:00:00 2001
  2. From: Urja Rannikko <urjaman@gmail.com>
  3. Date: Sun, 19 Jul 2020 20:28:27 +0300
  4. Subject: [PATCH] Add extern to char* outfile declaration to fix build with gcc
  5. 10
  6. Without this linking fails with a rather long spew of
  7. "multiple definition of `outfile'".
  8. Signed-off-by: Urja Rannikko <urjaman@gmail.com>
  9. ---
  10. genisoimage/genisoimage.h | 2 +-
  11. 1 file changed, 1 insertion(+), 1 deletion(-)
  12. diff --git a/genisoimage/genisoimage.h b/genisoimage/genisoimage.h
  13. index bbedfb0..82c859b 100644
  14. --- a/genisoimage/genisoimage.h
  15. +++ b/genisoimage/genisoimage.h
  16. @@ -376,7 +376,7 @@ extern int use_fileversion;
  17. extern int split_SL_component;
  18. extern int split_SL_field;
  19. extern char *trans_tbl;
  20. -char *outfile;
  21. +extern char *outfile;
  22. #define JMAX 64 /* maximum Joliet file name length (spec) */
  23. #define JLONGMAX 103 /* out of spec Joliet file name length */
  24. --
  25. 2.27.0