#546163, fix link problem on Solaris 8 for makedev when using mknod
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 @@
 #	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 */