diff options
author | Guido van Rossum <guido@python.org> | 1997-08-05 02:24:57 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-08-05 02:24:57 (GMT) |
commit | 668e441a86312a7d13948cb1aa797d42ceadaa01 (patch) | |
tree | f80c2df4af3a9d13298cc60f06cffdf6f280c3a0 /Modules/resource.c | |
parent | 5d1770ee24c7181259fbc5c427f73da037bb8eee (diff) | |
download | cpython-668e441a86312a7d13948cb1aa797d42ceadaa01.zip cpython-668e441a86312a7d13948cb1aa797d42ceadaa01.tar.gz cpython-668e441a86312a7d13948cb1aa797d42ceadaa01.tar.bz2 |
purported linux portability patch (Oliver Andrich)
Diffstat (limited to 'Modules/resource.c')
-rw-r--r-- | Modules/resource.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/resource.c b/Modules/resource.c index 01fe79c..9ff9b63 100644 --- a/Modules/resource.c +++ b/Modules/resource.c @@ -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) |