summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-04-20 13:46:43 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-04-20 13:46:43 (GMT)
commit3d94942000dde4266487969eb75f27fd3d46099f (patch)
treed79917eb57db4403b044664b8e8414c1b673a09f /Modules/posixmodule.c
parenta4eb14b7a419f01ea92ee57375836db04ee4ba51 (diff)
downloadcpython-3d94942000dde4266487969eb75f27fd3d46099f.zip
cpython-3d94942000dde4266487969eb75f27fd3d46099f.tar.gz
cpython-3d94942000dde4266487969eb75f27fd3d46099f.tar.bz2
#546163, fix link problem on Solaris 8 for makedev when using mknod
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c3
1 files changed, 3 insertions, 0 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 */