summaryrefslogtreecommitdiff
path: root/Modules/resource.c
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-07-24 16:06:23 +0000
committerThomas Wouters <thomas@python.org>2000-07-24 16:06:23 +0000
commit1e0c2f4bee43728930bd5f4dc77283f09c4ba004 (patch)
tree230e982075e5b0804e08d8fd24e73373dfffeb8a /Modules/resource.c
parent332c59c4efafd7b1f841dd144fa3843c8476de6e (diff)
downloadcpython-git-1e0c2f4bee43728930bd5f4dc77283f09c4ba004.tar.gz
Create a new section of pyport.h to hold all external function declarations
for systems that are missing those declarations from system include files. Start by moving a pointy-haired ones from their previous locations to the new section. (The gethostname() one, for instance, breaks on several systems, because some define it as (char *, size_t) and some as (char *, int).) I purposely decided not to include the summary of used #defines like Tim did in the first section of pyport.h. In my opinion, the number of #defines likedly to be used by this section would make such an overview unwieldy. I would suggest documenting the non-obvious ones, though.
Diffstat (limited to 'Modules/resource.c')
-rw-r--r--Modules/resource.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Modules/resource.c b/Modules/resource.c
index 9da87af88d..76fd73122b 100644
--- a/Modules/resource.c
+++ b/Modules/resource.c
@@ -22,10 +22,6 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
but we can't declare the prototype, to avoid errors
when the header files declare it different.
Worse, on some Linuxes, getpagesize() returns a size_t... */
-#ifndef linux
-int getrusage();
-int getpagesize();
-#endif
#define doubletime(TV) ((double)(TV).tv_sec + (TV).tv_usec * 0.000001)