]> granicus.if.org Git - python/commitdiff
Conditionalize sys/time.h inclusion.
authorMartin v. Löwis <martin@v.loewis.de>
Mon, 24 Mar 2008 13:54:23 +0000 (13:54 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Mon, 24 Mar 2008 13:54:23 +0000 (13:54 +0000)
Modules/signalmodule.c

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