diff --git a/pyuno/source/module/pyuno_dlopenwrapper.c b/pyuno/source/module/pyuno_dlopenwrapper.c index 01386e6ead4d..3bdc912f95bd 100644 --- a/pyuno/source/module/pyuno_dlopenwrapper.c +++ b/pyuno/source/module/pyuno_dlopenwrapper.c @@ -26,6 +26,10 @@ * ************************************************************************/ +/* make Python.h go first as a hack to work around _POSIX_C_SOURCE redefinition + warnings: */ +#include "Python.h" + #include "sal/config.h" #include @@ -36,8 +40,6 @@ #endif #include -#include "Python.h" - #include "rtl/string.h" /* A wrapper around libpyuno.so, making sure the latter is loaded RTLD_GLOBAL