Root/
| 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 | |
| 17 | -#ifdef __APPLE__ |
| 18 | +#if defined(__APPLE__) && __DARWIN_C_LEVEL < 200809L |
| 19 | #include "getline.h" |
| 20 | #endif |
| 21 | |
| 22 |
