Always #define _PyLong_FromDev as we always need it to compile rather than
only defining it when HAVE_MKNOD && HAVE_MAKEDEV are true. This "oops" issue reported by John E. Malmberg on core-mentorship. (what kinds of systems don't HAVE_MKNOD && HAVE_MAKEDEV?)
This commit is contained in:
commit
bd4976bbd3
|
@ -617,6 +617,13 @@ fail:
|
|||
#endif /* MS_WINDOWS */
|
||||
|
||||
|
||||
#ifdef HAVE_LONG_LONG
|
||||
# define _PyLong_FromDev PyLong_FromLongLong
|
||||
#else
|
||||
# define _PyLong_FromDev PyLong_FromLong
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(HAVE_MKNOD) && defined(HAVE_MAKEDEV)
|
||||
static int
|
||||
_Py_Dev_Converter(PyObject *obj, void *p)
|
||||
|
@ -630,14 +637,7 @@ _Py_Dev_Converter(PyObject *obj, void *p)
|
|||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
#ifdef HAVE_LONG_LONG
|
||||
# define _PyLong_FromDev PyLong_FromLongLong
|
||||
#else
|
||||
# define _PyLong_FromDev PyLong_FromLong
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif /* HAVE_MKNOD && HAVE_MAKEDEV */
|
||||
|
||||
|
||||
#ifdef AT_FDCWD
|
||||
|
|
Loading…
Reference in New Issue