summaryrefslogtreecommitdiffstats
path: root/Modules/timing.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-01-14 16:55:50 (GMT)
committerGuido van Rossum <guido@python.org>1994-01-14 16:55:50 (GMT)
commitcbcd8d796f36f9eedc25690229eca0b4fa55ee68 (patch)
treea8f943f6991aa35585168aee4858bdcb0f75cc7e /Modules/timing.h
parent4de6cbccf0e34f82c53578ba1319d2647a843307 (diff)
downloadcpython-cbcd8d796f36f9eedc25690229eca0b4fa55ee68.zip
cpython-cbcd8d796f36f9eedc25690229eca0b4fa55ee68.tar.gz
cpython-cbcd8d796f36f9eedc25690229eca0b4fa55ee68.tar.bz2
Make more robust against Minix and Mac
Diffstat (limited to 'Modules/timing.h')
-rw-r--r--Modules/timing.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/Modules/timing.h b/Modules/timing.h
index aef6457..4495631 100644
--- a/Modules/timing.h
+++ b/Modules/timing.h
@@ -37,9 +37,12 @@
* Author: George V. Neville-Neil
*
* Update History: $Log$
- * Update History: Revision 2.1 1994/01/02 23:22:19 guido
- * Update History: Added George Neville-Neil's timing module
+ * Update History: Revision 2.2 1994/01/14 16:55:47 guido
+ * Update History: Make more robust against Minix and Mac
* Update History:
+ * Revision 2.1 1994/01/02 23:22:19 guido
+ * Added George Neville-Neil's timing module
+ *
* Revision 1.1 93/12/28 13:14:19 gnn
* Initial revision
*
@@ -62,7 +65,16 @@
#ifndef _TIMING_H_
#define _TIMING_H_
+#ifdef TIME_WITH_SYS_TIME
+#include <sys/time.h>
+#include <time.h>
+#else /* !TIME_WITH_SYS_TIME */
+#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
+#else /* !HAVE_SYS_TIME_H */
+#include <time.h>
+#endif /* !HAVE_SYS_TIME_H */
+#endif /* !TIME_WITH_SYS_TIME */
static struct timeval aftertp, beforetp;