From: Guido van Rossum Date: Mon, 25 Sep 2000 13:22:00 +0000 (+0000) Subject: Add missing prototypes for the benefit of SunOS 4.1.4 */ X-Git-Tag: v2.0b2~48 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b00adfbd83147647d3cb27f75429a928d74a3f3b;p=thirdparty%2FPython%2Fcpython.git Add missing prototypes for the benefit of SunOS 4.1.4 */ --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 27571033d2ad..8350e06e6d88 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