mirror of https://github.com/python/cpython
purported linux portability patch (Oliver Andrich)
This commit is contained in:
parent
5d1770ee24
commit
668e441a86
|
@ -11,8 +11,12 @@ int getrusage(int who, struct rusage *rusage);
|
|||
#endif
|
||||
|
||||
#ifndef getpagesize
|
||||
#ifdef linux
|
||||
extern size_t getpagesize(void);
|
||||
#else
|
||||
int getpagesize(void);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define doubletime(TV) ((double)(TV).tv_sec + (TV).tv_usec * 0.000001)
|
||||
|
||||
|
|
Loading…
Reference in New Issue