1
0

022-getline_backport.patch 436 B

123456789101112131415161718192021
  1. --- a/tools/os_support.c
  2. +++ b/tools/os_support.c
  3. @@ -23,6 +23,6 @@
  4. #ifdef __MINGW32__
  5. #include "mingw_support.c"
  6. #endif
  7. -#ifdef __APPLE__
  8. +#if defined(__APPLE__) && __DARWIN_C_LEVEL < 200809L
  9. #include "getline.c"
  10. #endif
  11. --- a/tools/os_support.h
  12. +++ b/tools/os_support.h
  13. @@ -28,7 +28,7 @@
  14. #include "mingw_support.h"
  15. #endif
  16. -#ifdef __APPLE__
  17. +#if defined(__APPLE__) && __DARWIN_C_LEVEL < 200809L
  18. #include "getline.h"
  19. #endif