components/python/python26/patches/Python26-24-makedev.patch
branchs11u3-sru
changeset 7811 9126e6f58cd8
parent 7792 ee802f9b5132
child 7816 79ee06fdecc5
equal deleted inserted replaced
7792:ee802f9b5132 7811:9126e6f58cd8
     1 --- Python-2.6.8/configure.in.orig	2012-05-14 06:24:15.149791072 -0700
       
     2 +++ Python-2.6.8/configure.in	2012-05-14 06:27:52.383479003 -0700
       
     3 @@ -1416,36 +1416,9 @@
       
     4  ])
       
     5  AC_MSG_RESULT($was_it_defined)
       
     6  
       
     7 -# Check whether using makedev requires defining _OSF_SOURCE
       
     8 -AC_MSG_CHECKING(for makedev)
       
     9 -AC_TRY_LINK([
       
    10 -#if defined(MAJOR_IN_MKDEV)
       
    11 -#include <sys/mkdev.h>
       
    12 -#elif defined(MAJOR_IN_SYSMACROS)
       
    13 -#include <sys/sysmacros.h>
       
    14 -#else
       
    15 -#include <sys/types.h>
       
    16 -#endif ],
       
    17 -	    [ makedev(0, 0) ],
       
    18 -	    ac_cv_has_makedev=yes,
       
    19 -	    ac_cv_has_makedev=no)
       
    20 -if test "$ac_cv_has_makedev" = "no"; then
       
    21 -    # we didn't link, try if _OSF_SOURCE will allow us to link
       
    22 -    AC_TRY_LINK([
       
    23 -#define _OSF_SOURCE 1
       
    24 -#include <sys/types.h>
       
    25 -    ],
       
    26 -    [ makedev(0, 0) ],
       
    27 -    ac_cv_has_makedev=yes,
       
    28 -    ac_cv_has_makedev=no)
       
    29 -    if test "$ac_cv_has_makedev" = "yes"; then
       
    30 -        AC_DEFINE(_OSF_SOURCE, 1, [Define _OSF_SOURCE to get the makedev macro.])
       
    31 -    fi
       
    32 -fi
       
    33 -AC_MSG_RESULT($ac_cv_has_makedev)
       
    34 -if test "$ac_cv_has_makedev" = "yes"; then
       
    35 -    AC_DEFINE(HAVE_MAKEDEV, 1, [Define this if you have the makedev macro.])
       
    36 -fi
       
    37 +# Solaris has makedev, and posixmodule already has all the right #include
       
    38 +# statements.
       
    39 +AC_DEFINE(HAVE_MAKEDEV, 1, [Define this if you have the makedev macro.])
       
    40  
       
    41  # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
       
    42  # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are