summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-07-12 13:41:29 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-07-12 13:41:29 (GMT)
commitbe8c6ae56e1e80d2e0525aa413ba33d03f958117 (patch)
tree2f62cdbdb352f88b0122bfa1ff18d5c25b1dd649
parenta1b1e5f7b827084142d9ea23aee42e883a32c0ad (diff)
downloadcpython-be8c6ae56e1e80d2e0525aa413ba33d03f958117.zip
cpython-be8c6ae56e1e80d2e0525aa413ba33d03f958117.tar.gz
cpython-be8c6ae56e1e80d2e0525aa413ba33d03f958117.tar.bz2
Issue #24611: Fixed compiling the posix module on non-Windows platforms
without mknod() or makedev() (e.g. on Unixware).
-rw-r--r--Misc/NEWS3
-rw-r--r--Modules/posixmodule.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 56eaa66..9d9a7de 100644
--- 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
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 4e86d32..4fc3ef7 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -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