From 668e441a86312a7d13948cb1aa797d42ceadaa01 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 5 Aug 1997 02:24:57 +0000 Subject: [PATCH] purported linux portability patch (Oliver Andrich) --- Modules/resource.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Modules/resource.c b/Modules/resource.c index 01fe79c38d6..9ff9b63b5e0 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)