Conditionalize sys/time.h inclusion.

This commit is contained in:
Martin v. Löwis 2008-03-24 13:54:23 +00:00
parent aef18b1c67
commit b74d084da8
1 changed files with 2 additions and 0 deletions

View File

@ -13,7 +13,9 @@
#include <signal.h> #include <signal.h>
#include <sys/stat.h> #include <sys/stat.h>
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h> #include <sys/time.h>
#endif
#ifndef SIG_ERR #ifndef SIG_ERR
#define SIG_ERR ((PyOS_sighandler_t)(-1)) #define SIG_ERR ((PyOS_sighandler_t)(-1))