]> granicus.if.org Git - python/commitdiff
Issue #3928: Support 'os.mknod()' in Solaris
authorJesus Cea <jcea@jcea.es>
Wed, 28 Apr 2010 10:32:30 +0000 (10:32 +0000)
committerJesus Cea <jcea@jcea.es>
Wed, 28 Apr 2010 10:32:30 +0000 (10:32 +0000)
Misc/NEWS
configure
configure.in

index d026e36ba7e5b693eee15473f71a226e75645ed2..248d41b702a536f622abcdc847b21326468f3001 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -324,6 +324,8 @@ Extension Modules
   http://www.jcea.es/programacion/pybsddb.htm#bsddb3-4.8.4.
   This update drops support for Berkeley DB 4.0, and adds support for 4.8.
 
+- Issue #3928: os.mknod() now available in Solaris, also.
+
 - Issue #8142: Update libffi to the 3.0.9 release.
 
 - Issue #8300: When passing a non-integer argument to struct.pack with any
index 697df6df264a5b1831d3bd94f22892ede0e66140..efa6e6bfc45d2b919c71050e82d5995fb6377cea 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 80187 .
+# From configure.in Revision: 80443 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.61 for python 2.7.
 #
@@ -6606,7 +6606,14 @@ _ACEOF
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
+
+#if defined(MAJOR_IN_MKDEV)
+#include <sys/mkdev.h>
+#elif defined(MAJOR_IN_SYSMACROS)
+#include <sys/sysmacros.h>
+#else
 #include <sys/types.h>
+#endif
 int
 main ()
 {
index 63ed01ce3a801d93da534b49858dd41f866ca8da..d907d4f4522201a8a35cf1012189f7f9e2556cf9 100644 (file)
@@ -1373,7 +1373,14 @@ AC_MSG_RESULT($was_it_defined)
 
 # Check whether using makedev requires defining _OSF_SOURCE
 AC_MSG_CHECKING(for makedev)
-AC_TRY_LINK([#include <sys/types.h> ],
+AC_TRY_LINK([
+#if defined(MAJOR_IN_MKDEV)
+#include <sys/mkdev.h>
+#elif defined(MAJOR_IN_SYSMACROS)
+#include <sys/sysmacros.h>
+#else
+#include <sys/types.h>
+#endif ],
            [ makedev(0, 0) ],
            ac_cv_has_makedev=yes,
            ac_cv_has_makedev=no)