From 6f4f5f789258b045ad7638ca6227b4998a86feb3 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 10 Mar 1995 15:14:41 +0000 Subject: some more changes for NT and Borland --- Modules/posixmodule.c | 8 +++++--- 1 file 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, "")) -- cgit v0.12