Merged revisions 80574 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r80574 | jesus.cea | 2010-04-28 12:32:30 +0200 (Wed, 28 Apr 2010) | 1 line Issue #3928: Support 'os.mknod()' in Solaris ........
This commit is contained in:
parent
d99cd81df5
commit
740f53a600
|
@ -1098,6 +1098,8 @@ Extension Modules
|
||||||
Build
|
Build
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
- Issue #3928: os.mknod() now available in Solaris, also.
|
||||||
|
|
||||||
- Issue #3326: Build Python without -fno-strict-aliasing when the gcc does not
|
- Issue #3326: Build Python without -fno-strict-aliasing when the gcc does not
|
||||||
give false warnings.
|
give false warnings.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# From configure.in Revision: 80478 .
|
# From configure.in Revision: 80481 .
|
||||||
# Guess values for system-dependent variables and create Makefiles.
|
# Guess values for system-dependent variables and create Makefiles.
|
||||||
# Generated by GNU Autoconf 2.65 for python 3.2.
|
# Generated by GNU Autoconf 2.65 for python 3.2.
|
||||||
#
|
#
|
||||||
|
@ -1928,11 +1928,11 @@ else
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
$ac_includes_default
|
$ac_includes_default
|
||||||
enum { N = $2 / 2 - 1 };
|
|
||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
|
static int test_array [1 - 2 * !(enum { N = $2 / 2 - 1 };
|
||||||
|
0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
|
||||||
test_array [0] = 0
|
test_array [0] = 0
|
||||||
|
|
||||||
;
|
;
|
||||||
|
@ -1943,11 +1943,11 @@ if ac_fn_c_try_compile "$LINENO"; then :
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
$ac_includes_default
|
$ac_includes_default
|
||||||
enum { N = $2 / 2 - 1 };
|
|
||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
|
static int test_array [1 - 2 * !(enum { N = $2 / 2 - 1 };
|
||||||
|
($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
|
||||||
< ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
|
< ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
|
||||||
test_array [0] = 0
|
test_array [0] = 0
|
||||||
|
|
||||||
|
@ -6274,11 +6274,19 @@ $as_echo_n "checking for makedev... " >&6; }
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
|
|
||||||
#include <sys/types.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
|
int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
makedev(0, 0)
|
|
||||||
|
makedev(0, 0)
|
||||||
;
|
;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
12
configure.in
12
configure.in
|
@ -1314,8 +1314,16 @@ AC_MSG_RESULT($was_it_defined)
|
||||||
|
|
||||||
# Check whether using makedev requires defining _OSF_SOURCE
|
# Check whether using makedev requires defining _OSF_SOURCE
|
||||||
AC_MSG_CHECKING(for makedev)
|
AC_MSG_CHECKING(for makedev)
|
||||||
AC_LINK_IFELSE([
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
|
||||||
AC_LANG_PROGRAM([[#include <sys/types.h> ]], [[ makedev(0, 0) ]])
|
#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])
|
],[ac_cv_has_makedev=yes],[ac_cv_has_makedev=no])
|
||||||
if test "$ac_cv_has_makedev" = "no"; then
|
if test "$ac_cv_has_makedev" = "no"; then
|
||||||
# we didn't link, try if _OSF_SOURCE will allow us to link
|
# we didn't link, try if _OSF_SOURCE will allow us to link
|
||||||
|
|
Loading…
Reference in New Issue