1 diff -ruN Python-2.6.7-orig/configure.in Python-2.6.7/configure.in
   2 --- Python-2.6.7-orig/configure.in      2010-05-25 02:27:03.000000000 +0000
   3 +++ Python-2.6.7/configure.in   2012-02-15 20:53:35.447313987 +0000
   4 @@ -1358,36 +1358,9 @@
   5  ])
   6  AC_MSG_RESULT($was_it_defined)
   7  
   8 -# Check whether using makedev requires defining _OSF_SOURCE
   9 -AC_MSG_CHECKING(for makedev)
  10 -AC_TRY_LINK([
  11 -#if defined(MAJOR_IN_MKDEV)
  12 -#include <sys/mkdev.h>
  13 -#elif defined(MAJOR_IN_SYSMACROS)
  14 -#include <sys/sysmacros.h>
  15 -#else
  16 -#include <sys/types.h>
  17 -#endif ],
  18 -           [ makedev(0, 0) ],
  19 -           ac_cv_has_makedev=yes,
  20 -           ac_cv_has_makedev=no)
  21 -if test "$ac_cv_has_makedev" = "no"; then
  22 -    # we didn't link, try if _OSF_SOURCE will allow us to link
  23 -    AC_TRY_LINK([
  24 -#define _OSF_SOURCE 1
  25 -#include <sys/types.h>
  26 -    ],
  27 -    [ makedev(0, 0) ],
  28 -    ac_cv_has_makedev=yes,
  29 -    ac_cv_has_makedev=no)
  30 -    if test "$ac_cv_has_makedev" = "yes"; then
  31 -        AC_DEFINE(_OSF_SOURCE, 1, [Define _OSF_SOURCE to get the makedev macro.])
  32 -    fi
  33 -fi
  34 -AC_MSG_RESULT($ac_cv_has_makedev)
  35 -if test "$ac_cv_has_makedev" = "yes"; then
  36 -    AC_DEFINE(HAVE_MAKEDEV, 1, [Define this if you have the makedev macro.])
  37 -fi
  38 +# Solaris has makedev, and posixmodule already has all the right #include
  39 +# statements.
  40 +AC_DEFINE(HAVE_MAKEDEV, 1, [Define this if you have the makedev macro.])
  41  
  42  # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
  43  # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are