From: Guido van Rossum Date: Tue, 5 Aug 1997 02:24:57 +0000 (+0000) Subject: purported linux portability patch (Oliver Andrich) X-Git-Tag: v1.5a3~137 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=668e441a86312a7d13948cb1aa797d42ceadaa01;p=thirdparty%2FPython%2Fcpython.git purported linux portability patch (Oliver Andrich) --- diff --git a/Modules/resource.c b/Modules/resource.c index 01fe79c38d65..9ff9b63b5e04 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)