--- python/dist/src/configure.in.old 2003-05-03 14:20:48.000000000 -0700 +++ python/dist/src/configure.in 2003-05-04 10:08:12.305040080 -0700 @@ -635,7 +635,7 @@ *) case $ac_sys_system in OpenUNIX*|UnixWare*) - BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " + BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca -DUW7" ;; SCO_SV*) BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" --- python/dist/src/pyconfig.h.in.old 2003-05-03 14:13:46.640480001 -0700 +++ python/dist/src/pyconfig.h.in 2003-05-03 16:07:43.415440006 -0700 @@ -270,6 +270,18 @@ /* Define this if you have the type long long. */ #undef HAVE_LONG_LONG +/* Define this if you have the type u_char. */ +#undef HAVE_U_CHAR + +/* Define this if you have the type u_short. */ +#undef HAVE_U_SHORT + +/* Define this if you have the type u_int. */ +#undef HAVE_U_INT + +/* Define this if you have the type u_long. */ +#undef HAVE_U_LONG + /* Define to 1 if you have the `lstat' function. */ #undef HAVE_LSTAT --- python/dist/src/Modules/socketmodule.c.old 2003-05-03 14:15:35.020480001 -0700 +++ python/dist/src/Modules/socketmodule.c 2003-05-03 17:58:33.765120001 -0700 @@ -62,6 +62,7 @@ */ #include "Python.h" +#include "osdefs.h" #undef MAX #define MAX(x, y) ((x) < (y) ? (y) : (x)) --- python/dist/src/Include/pyport.h.old 2003-04-17 13:17:24.000000000 -0700 +++ python/dist/src/Include/pyport.h 2003-05-03 16:07:43.245440004 -0700 @@ -60,6 +60,23 @@ #endif #endif /* HAVE_LONG_LONG */ +/* with _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, & _POSIX_C_SOURCE now + * defined by default, some platforms will no longer have some data types + * in sys/types.h + */ +#ifndef HAVE_U_CHAR +typedef unsigned char u_char; +#endif +#ifndef HAVE_U_SHORT +typedef unsigned short u_short; +#endif +#ifndef HAVE_U_INT +typedef unsigned int u_int; +#endif +#ifndef HAVE_U_LONG +typedef unsigned long u_long; +#endif + /* uintptr_t is the C9X name for an unsigned integral type such that a * legitimate void* can be cast to uintptr_t and then back to void* again * without loss of information. Similarly for intptr_t, wrt a signed @@ -115,7 +132,9 @@ #ifdef HAVE_SYS_SELECT_H +#ifdef SYS_SELECT_WITH_SYS_TIME #include +#endif #endif /* !HAVE_SYS_SELECT_H */ --- python/dist/src/Include/osdefs.h.old 2002-02-26 03:20:01.000000000 -0800 +++ python/dist/src/Include/osdefs.h 2003-05-03 17:52:36.065120002 -0700 @@ -52,6 +52,24 @@ #define DELIM ':' #endif +#ifdef UW7 +#ifndef NI_MAXHOST +#define NI_MAXHOST 1025 /* Maximum host name including nul */ +#endif +#ifndef NI_NUMERICHOST +#define NI_NUMERICHOST 0x0002 /* Return numeric host address */ +#endif +#ifndef NI_MAXSERV +#define NI_MAXSERV 32 /* Maximum service name incl. nul */ +#endif +#ifndef INET_ADDRSTRLEN +#define INET_ADDRSTRLEN 16 +#endif +#ifndef INET6_ADDRSTRLEN +#define INET6_ADDRSTRLEN 46 +#endif +#endif /* UW7 */ + #ifdef __cplusplus } #endif