diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-05-24 12:15:04 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-05-24 12:15:04 (GMT) |
commit | 4fe3858991581e22e365e51b5770547a0da33e4b (patch) | |
tree | cd0cd15abf1b748335f5190ace58ba77b93d26f1 /Modules | |
parent | e266f25cf1f9ad28409f4c11c40595fb25f555da (diff) | |
download | cpython-4fe3858991581e22e365e51b5770547a0da33e4b.zip cpython-4fe3858991581e22e365e51b5770547a0da33e4b.tar.gz cpython-4fe3858991581e22e365e51b5770547a0da33e4b.tar.bz2 |
Fix build under Windows
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 3d476b0..2787164 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -312,8 +312,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 PyInt_FromLong #define PyLong_AsPid PyInt_AsLong @@ -327,7 +326,6 @@ extern int lstat(const char *, struct stat *); #define PyLong_AsPid PyInt_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 |