]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add missing prototypes for the benefit of SunOS 4.1.4 */
authorGuido van Rossum <guido@python.org>
Mon, 25 Sep 2000 13:22:00 +0000 (13:22 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 25 Sep 2000 13:22:00 +0000 (13:22 +0000)
Modules/posixmodule.c

index 27571033d2adea8276f3e0967f5e98a11cc31c51..8350e06e6d88f747cf56ecaa1847767a2029c7ce 100644 (file)
@@ -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