[Python-checkins] cpython (2.7): Issue #24611: Fixed compiling the posix module on non-Windows platforms

serhiy.storchaka python-checkins at python.org
Sun Jul 12 15:41:52 CEST 2015


https://hg.python.org/cpython/rev/d2b8354e87f5
changeset:   96904:d2b8354e87f5
branch:      2.7
parent:      96883:cfb84be6c7fc
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Sun Jul 12 16:41:29 2015 +0300
summary:
  Issue #24611: Fixed compiling the posix module on non-Windows platforms
without mknod() or makedev() (e.g. on Unixware).

files:
  Misc/NEWS             |  3 +++
  Modules/posixmodule.c |  4 ++--
  2 files changed, 5 insertions(+), 2 deletions(-)


diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -34,6 +34,9 @@
 Library
 -------
 
+- Issue #24611: Fixed compiling the posix module on non-Windows platforms
+  without mknod() or makedev() (e.g. on Unixware).
+
 - Issue #18684: Fixed reading out of the buffer in the re module.
 
 - Issue #24259: tarfile now raises a ReadError if an archive is truncated
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -513,6 +513,8 @@
     return 1;
 }
 
+#endif
+
 #ifdef HAVE_LONG_LONG
 static PyObject *
 _PyInt_FromDev(PY_LONG_LONG v)
@@ -526,8 +528,6 @@
 #  define _PyInt_FromDev PyInt_FromLong
 #endif
 
-#endif
-
 
 #if defined _MSC_VER && _MSC_VER >= 1400
 /* Microsoft CRT in VS2005 and higher will verify that a filehandle is

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list