Ticket #7867: configure.in.Solaris.patch

File configure.in.Solaris.patch, 1.1 KB (added by drkirkby, 10 years ago)

Patch downloaded from Python web site - date changed to today

  • configure.in

     
    208208  # Marc Recht
    209209  NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
    210210    define_xopen_source=no;;
    211   # On Solaris 2.6, sys/wait.h is inconsistent in the usage
    212   # of union __?sigval. Reported by Stuart Bishop.
    213   SunOS/5.6)
     211  # From the perspective of Solaris, _XOPEN_SOURCE is not so much a
     212  # request to enable features supported by the standard as a request
     213  # to disable features not supported by the standard.  The best way
     214  # for Python to use Solaris is simply to leave _XOPEN_SOURCE out
     215  # entirely and define __EXTENSIONS__ instead.
     216  SunOS/*)
    214217    define_xopen_source=no;;
    215218  # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
    216219  # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
     
    271274  # except for Solaris 10, where it must not be defined,
    272275  # as it implies XPG4.2
    273276  case $ac_sys_system/$ac_sys_release in
    274     SunOS/5.10)
     277    SunOS/*)
    275278      ;;
    276279    *)
    277280      AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1,