summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/posixmodule.c3
-rwxr-xr-xconfigure3
-rw-r--r--configure.in2
-rw-r--r--pyconfig.h.in3
4 files changed, 9 insertions, 2 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index b9aa28a..fb35b1a 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -278,6 +278,9 @@ extern int lstat(const char *, struct stat *);
# define STRUCT_STAT struct stat
#endif
+#if defined(HAVE_MKNOD) && defined(HAVE_SYS_MKDEV_H)
+#include <sys/mkdev.h>
+#endif
/* Return a dictionary corresponding to the POSIX environment table */
diff --git a/configure b/configure
index d010d5e..cc8c477 100755
--- a/configure
+++ b/configure
@@ -3854,10 +3854,11 @@ fi
+
for ac_header in dlfcn.h fcntl.h grp.h limits.h langinfo.h \
libintl.h locale.h ncurses.h poll.h pthread.h \
signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \
-sys/audioio.h sys/file.h sys/lock.h sys/modem.h db_185.h db.h \
+sys/audioio.h sys/file.h sys/lock.h sys/mkdev.h sys/modem.h db_185.h db.h \
sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \
sys/un.h sys/utsname.h sys/wait.h pty.h term.h libutil.h \
ndbm.h db1/ndbm.h gdbm/ndbm.h sys/resource.h netpacket/packet.h
diff --git a/configure.in b/configure.in
index 8f76399..fb322f2 100644
--- a/configure.in
+++ b/configure.in
@@ -594,7 +594,7 @@ AC_HEADER_STDC
AC_CHECK_HEADERS(dlfcn.h fcntl.h grp.h limits.h langinfo.h \
libintl.h locale.h ncurses.h poll.h pthread.h \
signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \
-sys/audioio.h sys/file.h sys/lock.h sys/modem.h db_185.h db.h \
+sys/audioio.h sys/file.h sys/lock.h sys/mkdev.h sys/modem.h db_185.h db.h \
sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \
sys/un.h sys/utsname.h sys/wait.h pty.h term.h libutil.h \
ndbm.h db1/ndbm.h gdbm/ndbm.h sys/resource.h netpacket/packet.h)
diff --git a/pyconfig.h.in b/pyconfig.h.in
index 24dc3d1..8e96db2 100644
--- a/pyconfig.h.in
+++ b/pyconfig.h.in
@@ -475,6 +475,9 @@
/* Define to 1 if you have the <sys/lock.h> header file. */
#undef HAVE_SYS_LOCK_H
+/* Define to 1 if you have the <sys/mkdev.h> header file. */
+#undef HAVE_SYS_MKDEV_H
+
/* Define to 1 if you have the <sys/modem.h> header file. */
#undef HAVE_SYS_MODEM_H