From b00adfbd83147647d3cb27f75429a928d74a3f3b Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 25 Sep 2000 13:22:00 +0000 Subject: [PATCH] Add missing prototypes for the benefit of SunOS 4.1.4 */ --- Modules/posixmodule.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 27571033d2a..8350e06e6d8 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -108,6 +108,13 @@ corresponding Unix manual entries for more information on calls."; #include #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 and aren't worth much */ #undef HAVE_UNISTD_H