Issue #24611: Fixed compiling the posix module on non-Windows platforms
without mknod() or makedev() (e.g. on Unixware).
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 @@
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