summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/_localemodule.c4
-rw-r--r--Modules/selectmodule.c9
2 files changed, 13 insertions, 0 deletions
diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c
index 80bfbb2..53ae678 100644
--- a/Modules/_localemodule.c
+++ b/Modules/_localemodule.c
@@ -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;
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
index de910c6..b0139e8 100644
--- a/Modules/selectmodule.c
+++ b/Modules/selectmodule.c
@@ -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 */