diff options
author | Guido van Rossum <guido@python.org> | 1995-03-10 15:14:41 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-03-10 15:14:41 (GMT) |
commit | 6f4f5f789258b045ad7638ca6227b4998a86feb3 (patch) | |
tree | fe50b76ef0c3d6d92c9d33180f56462ae88241f3 /Modules | |
parent | caffcdfc8c8b2aa89c602b925f2b357887bf289e (diff) | |
download | cpython-6f4f5f789258b045ad7638ca6227b4998a86feb3.zip cpython-6f4f5f789258b045ad7638ca6227b4998a86feb3.tar.gz cpython-6f4f5f789258b045ad7638ca6227b4998a86feb3.tar.bz2 |
some more changes for NT and Borland
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/posixmodule.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 76ba388..3861528 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -62,6 +62,8 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #define HAVE_GETUID 1 #define HAVE_KILL 1 #define HAVE_WAIT 1 +#define HAVE_OPENDIR 1 +#define HAVE_PIPE 1 #endif #ifndef NT @@ -359,7 +361,7 @@ posix_listdir(self, args) object *self; object *args; { -#ifdef NT +#if defined(NT) && !defined(HAVE_OPENDIR) char *name; int len; @@ -1057,7 +1059,7 @@ posix_times(self, args) (double)t.tms_cstime / HZ); } #endif /* HAVE_TIMES */ -#ifdef NT +#if defined(NT) && !defined(HAVE_TIMES) #define HAVE_TIMES /* so the method table will pick it up */ static object * posix_times(self, args) @@ -1337,7 +1339,7 @@ posix_pipe(self, args) object *self; object *args; { -#ifndef NT +#if !defined(NT) || defined(HAVE_PIPE) int fds[2]; int res; if (!getargs(args, "")) |