diff options
author | Guido van Rossum <guido@python.org> | 2001-03-02 06:28:17 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-03-02 06:28:17 (GMT) |
commit | 1ca8bb374eeee89d5f1a3789d804f49ec07836ee (patch) | |
tree | 820617c810d097a3fa768efecea1103289f6ed71 | |
parent | 5dfa13719f2929e390e82a94a3721a65a6fd9bf8 (diff) | |
download | cpython-1ca8bb374eeee89d5f1a3789d804f49ec07836ee.zip cpython-1ca8bb374eeee89d5f1a3789d804f49ec07836ee.tar.gz cpython-1ca8bb374eeee89d5f1a3789d804f49ec07836ee.tar.bz2 |
RISCOS changes by dschwertberger
-rw-r--r-- | Modules/_localemodule.c | 4 | ||||
-rw-r--r-- | Modules/selectmodule.c | 9 |
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 */ |