History

python: update python build configuration to new ape capabilities like getaddrinfo(), ipv6 and fix EISCON typo in ape

cinap_lenrek committed 13 years ago

Commit 04383f11 parent c62c5942 files · +7 −11Browse files

Showing the changes to sys/src/cmd/python (1 of 2 files). Show all

Unified · Split

sys/src/cmd/python/pyconfig.h+6−10
@@ -44,16 +44,12 @@ typedef unsigned char u_char; · 43 unmodified lines
4444 typedef unsigned short u_short;
4545 typedef unsigned long u_long;
4646
47−#define EISCONN 63
48−
49−#define FD_SETSIZE 96 /* see /sys/include/ape/sys/select.h */
50−
5147 #define SIGWINCH 21 /* for curses */
5248
5349 #define S_ISSOCK S_ISFIFO /* for hg, see /sys/include/ape/sys/stat.h */
5450
5551 /* Define if --enable-ipv6 is specified */
56−/* #undef ENABLE_IPV6 */
52+#define ENABLE_IPV6 1
5753
5854 /* Define if getpgrp() must be called as getpgrp(0). */
5955 /* #define GETPGRP_HAVE_ARG 1 */
@@ -63,7 +59,7 @@ typedef unsigned long u_long; · 3 unmodified lines
6359 /* #undef GETTIMEOFDAY_NO_TZ */
6460
6561 /* struct addrinfo (netdb.h) */
66−/* #define HAVE_ADDRINFO 1 */
62+#define HAVE_ADDRINFO 1
6763
6864 /* Define to 1 if you have the `alarm' function. */
6965 #define HAVE_ALARM 1
@@ -197,10 +193,10 @@ typedef unsigned long u_long; · 127 unmodified lines
197193 #define HAVE_FTRUNCATE 1
198194
199195 /* Define to 1 if you have the `gai_strerror' function. */
200−/* #undef HAVE_GAI_STRERROR */
196+#define HAVE_GAI_STRERROR 1
201197
202198 /* Define if you have the getaddrinfo function. */
203−/* #undef HAVE_GETADDRINFO */
199+#define HAVE_GETADDRINFO 1
204200
205201 /* Define to 1 if you have the `getcwd' function. */
206202 #define HAVE_GETCWD 1
@@ -232,7 +228,7 @@ typedef unsigned long u_long; · 25 unmodified lines
232228 #define HAVE_GETLOGIN 1
233229
234230 /* Define to 1 if you have the `getnameinfo' function. */
235−/* #undef HAVE_GETNAMEINFO */
231+#define HAVE_GETNAMEINFO 1
236232
237233 /* Define if you have the 'getpagesize' function. */
238234 /* #undef HAVE_GETPAGESIZE */
@@ -283,7 +279,7 @@ typedef unsigned long u_long; · 44 unmodified lines
283279 /* #undef HAVE_INET_ATON */
284280
285281 /* Define if you have the 'inet_pton' function. */
286−/* #undef HAVE_INET_PTON */
282+#define HAVE_INET_PTON 1
287283
288284 /* Define to 1 if you have the <inttypes.h> header file. */
289285 #define HAVE_INTTYPES_H 1