Author: Matti Picus <[email protected]>
Branch: py3.6
Changeset: r97830:806e2a942849
Date: 2019-10-22 00:45 +0300
http://bitbucket.org/pypy/pypy/changeset/806e2a942849/

Log:    make the include of sys/time.h local to pytime.c, include it on
        macos

diff --git a/pypy/module/cpyext/include/pyport.h 
b/pypy/module/cpyext/include/pyport.h
--- a/pypy/module/cpyext/include/pyport.h
+++ b/pypy/module/cpyext/include/pyport.h
@@ -41,9 +41,6 @@
 
 /* CPython needs this for the c-extension datetime, which is pure python on 
PyPy 
    downstream packages assume it is here (Pandas for instance) */
-#ifdef HAVE_CLOCK_GETTIME
-#include <sys/time.h>
-#endif
 #include <time.h> 
 
 /* uintptr_t is the C9X name for an unsigned integral type such that a
diff --git a/pypy/module/cpyext/src/pytime.c b/pypy/module/cpyext/src/pytime.c
--- a/pypy/module/cpyext/src/pytime.c
+++ b/pypy/module/cpyext/src/pytime.c
@@ -1,6 +1,8 @@
 #include "Python.h"
 #ifdef MS_WINDOWS
 #include <windows.h>
+#else
+#include <sys/time.h>
 #endif
 
 #if defined(__APPLE__)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to