mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Make more robust against Minix and Mac
This commit is contained in:
parent
4de6cbccf0
commit
cbcd8d796f
2 changed files with 22 additions and 5 deletions
|
@ -37,9 +37,12 @@
|
||||||
* Author: George V. Neville-Neil
|
* Author: George V. Neville-Neil
|
||||||
*
|
*
|
||||||
* Update History: $Log$
|
* Update History: $Log$
|
||||||
* Update History: Revision 2.1 1994/01/02 23:22:19 guido
|
* Update History: Revision 2.2 1994/01/14 16:55:47 guido
|
||||||
* Update History: Added George Neville-Neil's timing module
|
* Update History: Make more robust against Minix and Mac
|
||||||
* Update History:
|
* 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
|
* Revision 1.1 93/12/28 13:14:19 gnn
|
||||||
* Initial revision
|
* Initial revision
|
||||||
*
|
*
|
||||||
|
@ -62,7 +65,16 @@
|
||||||
#ifndef _TIMING_H_
|
#ifndef _TIMING_H_
|
||||||
#define _TIMING_H_
|
#define _TIMING_H_
|
||||||
|
|
||||||
|
#ifdef TIME_WITH_SYS_TIME
|
||||||
#include <sys/time.h>
|
#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;
|
static struct timeval aftertp, beforetp;
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,12 @@
|
||||||
* Author: George V. Neville-Neil
|
* Author: George V. Neville-Neil
|
||||||
*
|
*
|
||||||
* Update History: $Log$
|
* Update History: $Log$
|
||||||
* Update History: Revision 2.1 1994/01/02 23:22:21 guido
|
* Update History: Revision 2.2 1994/01/14 16:55:50 guido
|
||||||
* Update History: Added George Neville-Neil's timing module
|
* Update History: Make more robust against Minix and Mac
|
||||||
* Update History:
|
* 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
|
* Revision 1.1 93/12/28 13:14:39 gnn
|
||||||
* Initial revision
|
* Initial revision
|
||||||
*
|
*
|
||||||
|
@ -17,8 +20,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
|
#ifndef THINK_C
|
||||||
static char rcsid [] = "$Header$" ;
|
static char rcsid [] = "$Header$" ;
|
||||||
#endif
|
#endif /* THINK_C */
|
||||||
|
#endif /* lint */
|
||||||
|
|
||||||
#include "allobjects.h"
|
#include "allobjects.h"
|
||||||
#include "import.h"
|
#include "import.h"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue