From 1ca8bb374eeee89d5f1a3789d804f49ec07836ee Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 2 Mar 2001 06:28:17 +0000 Subject: RISCOS changes by dschwertberger --- Modules/_localemodule.c | 4 ++++ Modules/selectmodule.c | 9 +++++++++ 2 files changed, 13 insertions(+) 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 */ -- cgit v0.12