]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Make more robust against Minix and Mac
authorGuido van Rossum <guido@python.org>
Fri, 14 Jan 1994 16:55:50 +0000 (16:55 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 14 Jan 1994 16:55:50 +0000 (16:55 +0000)
Modules/timing.h
Modules/timingmodule.c

index aef6457c8c6c50028c4703e8bb22540b1b870370..4495631f962a1714861850b8a1bb0928ea02f99b 100644 (file)
  * 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
  * 
 #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;
 
index fcfa8f728496fe3456aedd6de4f2b297e97e96eb..f15b3fdb5ac64e5bccaa5dddd505378656d40502 100644 (file)
@@ -5,9 +5,12 @@
  * Author: George V. Neville-Neil
  *
  * Update History: $Log$
- * Update History: Revision 2.1  1994/01/02 23:22:21  guido
- * Update History: Added George Neville-Neil's timing module
+ * Update History: Revision 2.2  1994/01/14 16:55:50  guido
+ * Update History: Make more robust against Minix and Mac
  * Update History:
+ * Revision 2.1  1994/01/02  23:22:21  guido
+ * Added George Neville-Neil's timing module
+ *
  * Revision 1.1  93/12/28  13:14:39  gnn
  * Initial revision
  * 
  */
 
 #ifndef lint
+#ifndef THINK_C
 static char rcsid [] = "$Header$" ;
-#endif
+#endif /* THINK_C */
+#endif /* lint */
 
 #include "allobjects.h"
 #include "import.h"