0001-fix-linkage.patch 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From f385e7be8adb620ca7eb89f84abe4d1df94c1029 Mon Sep 17 00:00:00 2001
  2. From: Dave Vasilevsky <dave@vasilevsky.ca>
  3. Date: Sat, 25 Apr 2020 19:16:05 -0400
  4. Subject: [PATCH] fix linkage
  5. [Retrieved from:
  6. https://github.com/vasi/pixz/commit/f385e7be8adb620ca7eb89f84abe4d1df94c1029]
  7. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  8. ---
  9. src/common.c | 2 +-
  10. src/pixz.h | 4 ++--
  11. 2 files changed, 3 insertions(+), 3 deletions(-)
  12. diff --git a/src/common.c b/src/common.c
  13. index 59d3273..5938633 100644
  14. --- a/src/common.c
  15. +++ b/src/common.c
  16. @@ -7,7 +7,7 @@
  17. #pragma mark UTILS
  18. -FILE *gInFile = NULL;
  19. +FILE *gInFile = NULL, *gOutFile = NULL;
  20. lzma_stream gStream = LZMA_STREAM_INIT;
  21. diff --git a/src/pixz.h b/src/pixz.h
  22. index 0fa60f2..0939a9a 100644
  23. --- a/src/pixz.h
  24. +++ b/src/pixz.h
  25. @@ -54,8 +54,8 @@ void pixz_read(bool verify, size_t nspecs, char **specs);
  26. #pragma mark UTILS
  27. -FILE *gInFile, *gOutFile;
  28. -lzma_stream gStream;
  29. +extern FILE *gInFile, *gOutFile;
  30. +extern lzma_stream gStream;
  31. extern lzma_index *gIndex;