]> granicus.if.org Git - python/commitdiff
Issue #24611: Fixed compiling the posix module on non-Windows platforms
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 12 Jul 2015 13:41:29 +0000 (16:41 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Sun, 12 Jul 2015 13:41:29 +0000 (16:41 +0300)
without mknod() or makedev() (e.g. on Unixware).

Misc/NEWS
Modules/posixmodule.c

index 56eaa6632acb71bc5a7bcc0f88ae8c2855673e05..9d9a7de8f7ecd3eef90aa36be558fc664a69e4b5 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -34,6 +34,9 @@ Core and Builtins
 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
index 4e86d3216fa0cbcc2992d0bb1c59ccb0f2c7b77f..4fc3ef75a12ca6a89461605b064075699af6987c 100644 (file)
@@ -513,6 +513,8 @@ _Py_Dev_Converter(PyObject *obj, void *p)
     return 1;
 }
 
+#endif
+
 #ifdef HAVE_LONG_LONG
 static PyObject *
 _PyInt_FromDev(PY_LONG_LONG v)
@@ -526,8 +528,6 @@ _PyInt_FromDev(PY_LONG_LONG v)
 #  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