diff options
author | Jesus Cea <jcea@jcea.es> | 2010-04-28 10:32:30 (GMT) |
---|---|---|
committer | Jesus Cea <jcea@jcea.es> | 2010-04-28 10:32:30 (GMT) |
commit | 616de77779fe9732b54d2c7cddfea62afff28a88 (patch) | |
tree | 5687add989ba28fa49c20f08819d5d41c8e734f8 /configure.in | |
parent | 6a10281d3359de890519c23d0318742018c843a3 (diff) | |
download | cpython-616de77779fe9732b54d2c7cddfea62afff28a88.zip cpython-616de77779fe9732b54d2c7cddfea62afff28a88.tar.gz cpython-616de77779fe9732b54d2c7cddfea62afff28a88.tar.bz2 |
Issue #3928: Support 'os.mknod()' in Solaris
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 63ed01c..d907d4f 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 <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) |