ccextractor-0.88-fno-common.patch 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. From dfd25022e2a775a8b5eb03e4ad28bab6fe6a0658 Mon Sep 17 00:00:00 2001
  2. From: Ed Marshall <esm@logic.net>
  3. Date: Sat, 1 Feb 2020 15:03:22 -0800
  4. Subject: [PATCH] Fix multiple definitions with new -fno-common default in GCC
  5. 10
  6. ---
  7. ccextractor.c | 3 +++
  8. ccextractor.h | 4 ++--
  9. lib_ccx/ccx_decoders_708.h | 4 ++--
  10. 3 files changed, 7 insertions(+), 4 deletions(-)
  11. diff --git a/ccextractor.c b/ccextractor.c
  12. index a2fb0a24f..8ed27936d 100644
  13. --- a/ccextractor.c
  14. +++ b/ccextractor.c
  15. @@ -9,6 +9,9 @@ License: GPL 2.0
  16. volatile int terminate_asap = 0;
  17. +struct ccx_s_options ccx_options;
  18. +struct lib_ccx_ctx *signal_ctx;
  19. +
  20. void sigusr1_handler(int sig)
  21. {
  22. mprint("Caught SIGUSR1. Filename Change Requested\n");
  23. diff --git a/ccextractor.h b/ccextractor.h
  24. index 4e9ae68f6..e5cde3055 100644
  25. --- a/ccextractor.h
  26. +++ b/ccextractor.h
  27. @@ -41,8 +41,8 @@ char * api_param(struct ccx_s_options* api_options, int count);
  28. #endif
  29. -struct ccx_s_options ccx_options;
  30. -struct lib_ccx_ctx *signal_ctx;
  31. +extern struct ccx_s_options ccx_options;
  32. +extern struct lib_ccx_ctx *signal_ctx;
  33. //volatile int terminate_asap = 0;
  34. struct ccx_s_options* api_init_options();
  35. diff --git a/lib_ccx/ccx_decoders_708.h b/lib_ccx/ccx_decoders_708.h
  36. index 324f3890d..df52c6002 100644
  37. --- a/lib_ccx/ccx_decoders_708.h
  38. +++ b/lib_ccx/ccx_decoders_708.h
  39. @@ -371,7 +371,7 @@ void ccx_dtvcc_process_service_block(ccx_dtvcc_ctx *dtvcc,
  40. unsigned char *data,
  41. int data_length);
  42. -ccx_dtvcc_pen_color ccx_dtvcc_default_pen_color;
  43. -ccx_dtvcc_pen_attribs ccx_dtvcc_default_pen_attribs;
  44. +extern ccx_dtvcc_pen_color ccx_dtvcc_default_pen_color;
  45. +extern ccx_dtvcc_pen_attribs ccx_dtvcc_default_pen_attribs;
  46. #endif