Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 740f53a

Browse files
committed
Merged revisions 80574 via svnmerge from
svn+ssh://[email protected]/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 ........
1 parent d99cd81 commit 740f53a

3 files changed

Lines changed: 27 additions & 9 deletions

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,8 @@ Extension Modules
10981098
Build
10991099
-----
11001100

1101+
- Issue #3928: os.mknod() now available in Solaris, also.
1102+
11011103
- Issue #3326: Build Python without -fno-strict-aliasing when the gcc does not
11021104
give false warnings.
11031105

configure

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/sh
2-
# From configure.in Revision: 80478 .
2+
# From configure.in Revision: 80481 .
33
# Guess values for system-dependent variables and create Makefiles.
44
# Generated by GNU Autoconf 2.65 for python 3.2.
55
#
@@ -1928,11 +1928,11 @@ else
19281928
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19291929
/* end confdefs.h. */
19301930
$ac_includes_default
1931-
enum { N = $2 / 2 - 1 };
19321931
int
19331932
main ()
19341933
{
1935-
static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1934+
static int test_array [1 - 2 * !(enum { N = $2 / 2 - 1 };
1935+
0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
19361936
test_array [0] = 0
19371937
19381938
;
@@ -1943,11 +1943,11 @@ if ac_fn_c_try_compile "$LINENO"; then :
19431943
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19441944
/* end confdefs.h. */
19451945
$ac_includes_default
1946-
enum { N = $2 / 2 - 1 };
19471946
int
19481947
main ()
19491948
{
1950-
static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1949+
static int test_array [1 - 2 * !(enum { N = $2 / 2 - 1 };
1950+
($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
19511951
< ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
19521952
test_array [0] = 0
19531953
@@ -6274,11 +6274,19 @@ $as_echo_n "checking for makedev... " >&6; }
62746274
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62756275
/* end confdefs.h. */
62766276
6277-
#include <sys/types.h>
6277+
#if defined(MAJOR_IN_MKDEV)
6278+
#include <sys/mkdev.h>
6279+
#elif defined(MAJOR_IN_SYSMACROS)
6280+
#include <sys/sysmacros.h>
6281+
#else
6282+
#include <sys/types.h>
6283+
#endif
6284+
62786285
int
62796286
main ()
62806287
{
6281-
makedev(0, 0)
6288+
6289+
makedev(0, 0)
62826290
;
62836291
return 0;
62846292
}

configure.in

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1314,8 +1314,16 @@ AC_MSG_RESULT($was_it_defined)
13141314

13151315
# Check whether using makedev requires defining _OSF_SOURCE
13161316
AC_MSG_CHECKING(for makedev)
1317-
AC_LINK_IFELSE([
1318-
AC_LANG_PROGRAM([[#include <sys/types.h> ]], [[ makedev(0, 0) ]])
1317+
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
1318+
#if defined(MAJOR_IN_MKDEV)
1319+
#include <sys/mkdev.h>
1320+
#elif defined(MAJOR_IN_SYSMACROS)
1321+
#include <sys/sysmacros.h>
1322+
#else
1323+
#include <sys/types.h>
1324+
#endif
1325+
]], [[
1326+
makedev(0, 0) ]])
13191327
],[ac_cv_has_makedev=yes],[ac_cv_has_makedev=no])
13201328
if test "$ac_cv_has_makedev" = "no"; then
13211329
# we didn't link, try if _OSF_SOURCE will allow us to link

0 commit comments

Comments
 (0)