summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-09-25 13:22:00 (GMT)
committerGuido van Rossum <guido@python.org>2000-09-25 13:22:00 (GMT)
commitb00adfbd83147647d3cb27f75429a928d74a3f3b (patch)
tree438450f017ce5bce0e64bace3f01261dd13e3064 /Modules
parent4b36e6bde1f44d5b792f9276ee6a80985dda843d (diff)
downloadcpython-b00adfbd83147647d3cb27f75429a928d74a3f3b.zip
cpython-b00adfbd83147647d3cb27f75429a928d74a3f3b.tar.gz
cpython-b00adfbd83147647d3cb27f75429a928d74a3f3b.tar.bz2
Add missing prototypes for the benefit of SunOS 4.1.4 */
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 2757103..8350e06 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -108,6 +108,13 @@ corresponding Unix manual entries for more information on calls.";
#include <unistd.h>
#endif
+#if defined(sun) && !defined(__SVR4)
+/* SunOS 4.1.4 doesn't have prototypes for these: */
+extern int rename(const char *, const char *);
+extern int pclose(FILE *);
+extern int fclose(FILE *);
+#endif
+
#ifdef NeXT
/* NeXT's <unistd.h> and <utime.h> aren't worth much */
#undef HAVE_UNISTD_H