diff options
Diffstat (limited to 'src/if_python.c')
-rw-r--r-- | src/if_python.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/if_python.c b/src/if_python.c index b9a12fa21..c9ebf1312 100644 --- a/src/if_python.c +++ b/src/if_python.c @@ -37,6 +37,12 @@ #ifdef HAVE_STDARG_H # undef HAVE_STDARG_H /* Python's config.h defines it as well. */ #endif +#ifdef _POSIX_C_SOURCE +# undef _POSIX_C_SOURCE /* pyconfig.h defines it as well. */ +#endif +#ifdef _XOPEN_SOURCE +# undef _XOPEN_SOURCE /* pyconfig.h defines it as well. */ +#endif #define PY_SSIZE_T_CLEAN |