diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index b9aa28aa503..fb35b1a1bae 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 +#endif /* Return a dictionary corresponding to the POSIX environment table */ diff --git a/configure b/configure index d010d5ee707..cc8c4773385 100755 --- a/configure +++ b/configure @@ -3852,12 +3852,13 @@ 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 8f76399fa7f..fb322f294dd 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 24dc3d1a89c..8e96db2c08b 100644 --- a/pyconfig.h.in +++ b/pyconfig.h.in @@ -475,6 +475,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_SYS_LOCK_H +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_MKDEV_H + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_MODEM_H