diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-05-24 11:58:35 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-05-24 11:58:35 (GMT) |
commit | 7852c42ac28ac36e8ce64f0d9974676e8210f96f (patch) | |
tree | 5cce125615b6db5433f5f8cd993318ec6a828d34 /Modules | |
parent | f53eec88013b75bed1a676b57b323230fbf77959 (diff) | |
download | cpython-7852c42ac28ac36e8ce64f0d9974676e8210f96f.zip cpython-7852c42ac28ac36e8ce64f0d9974676e8210f96f.tar.gz cpython-7852c42ac28ac36e8ce64f0d9974676e8210f96f.tar.bz2 |
Try to fix building under Windows (where SIZEOF_PID_T apparently doesn't exist)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/posixmodule.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index cf19a07..f6c36cf 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -304,8 +304,7 @@ extern int lstat(const char *, struct stat *); #endif /* UNION_WAIT */ /* Issue #1983: pid_t can be longer than a C long on some systems */ -#ifdef SIZEOF_PID_T -#if SIZEOF_PID_T == SIZEOF_INT +#if !defined(SIZEOF_PID_T) || SIZEOF_PID_T == SIZEOF_INT #define PARSE_PID "i" #define PyLong_FromPid PyLong_FromLong #define PyLong_AsPid PyLong_AsLong @@ -319,7 +318,6 @@ extern int lstat(const char *, struct stat *); #define PyLong_AsPid PyLong_AsLongLong #else #error "sizeof(pid_t) is neither sizeof(int), sizeof(long) or sizeof(long long)" -#endif #endif /* SIZEOF_PID_T */ /* Don't use the "_r" form if we don't need it (also, won't have a |