From 616de77779fe9732b54d2c7cddfea62afff28a88 Mon Sep 17 00:00:00 2001 From: Jesus Cea Date: Wed, 28 Apr 2010 10:32:30 +0000 Subject: [PATCH] Issue #3928: Support 'os.mknod()' in Solaris --- Misc/NEWS | 2 ++ configure | 9 ++++++++- configure.in | 9 ++++++++- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/Misc/NEWS b/Misc/NEWS index d026e36ba7e..248d41b702a 100644 --- 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 diff --git a/configure b/configure index 697df6df264..efa6e6bfc45 100755 --- 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 +#elif defined(MAJOR_IN_SYSMACROS) +#include +#else #include +#endif int main () { diff --git a/configure.in b/configure.in index 63ed01ce3a8..d907d4f4522 100644 --- a/configure.in +++ b/configure.in @@ -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 ], +AC_TRY_LINK([ +#if defined(MAJOR_IN_MKDEV) +#include +#elif defined(MAJOR_IN_SYSMACROS) +#include +#else +#include +#endif ], [ makedev(0, 0) ], ac_cv_has_makedev=yes, ac_cv_has_makedev=no)