[Python-checkins] r72881 - python/branches/py3k/Modules/posixmodule.c
antoine.pitrou
python-checkins at python.org
Sun May 24 13:58:35 CEST 2009
Author: antoine.pitrou
Date: Sun May 24 13:58:35 2009
New Revision: 72881
Log:
Try to fix building under Windows (where SIZEOF_PID_T apparently doesn't exist)
Modified:
python/branches/py3k/Modules/posixmodule.c
Modified: python/branches/py3k/Modules/posixmodule.c
==============================================================================
--- python/branches/py3k/Modules/posixmodule.c (original)
+++ python/branches/py3k/Modules/posixmodule.c Sun May 24 13:58:35 2009
@@ -304,8 +304,7 @@
#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 @@
#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
More information about the Python-checkins
mailing list