]> granicus.if.org Git - python/commitdiff
RISCOS changes by dschwertberger
authorGuido van Rossum <guido@python.org>
Fri, 2 Mar 2001 06:28:17 +0000 (06:28 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 2 Mar 2001 06:28:17 +0000 (06:28 +0000)
Modules/_localemodule.c
Modules/selectmodule.c

index 80bfbb27296cea26ddbb50173ae6ab04ed107e6e..53ae678e7648ea955944792e46a84a3895ff068b 100644 (file)
@@ -26,6 +26,10 @@ This software comes with no warranty. Use at your own risk.
 #include "macglue.h"
 #endif
 
+#ifdef RISCOS
+char *strdup(const char *);
+#endif
+
 static char locale__doc__[] = "Support for POSIX locales.";
 
 static PyObject *Error;
index de910c6077e1643b27de5e7e1ea088fa696b8875..b0139e8bce09f32d8134eccec96ea007384b138b 100644 (file)
@@ -50,6 +50,15 @@ extern void bzero(void *, int);
 #endif
 #endif
 
+#ifdef RISCOS
+#define NO_DUP
+#undef off_t
+#undef uid_t
+#undef gid_t
+#undef errno
+#include "socklib.h"
+#endif /* RISCOS */
+
 static PyObject *SelectError;
 
 /* list of Python objects and their file descriptor */