Changeset 1538
- Timestamp:
- Dec 21, 2018, 6:53:57 PM (7 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk/Modules/socketmodule.h
r391 r1538 12 12 # include <netinet/tcp.h> 13 13 # endif 14 #ifdef __OS2__ 15 #include <libcx/net.h> 16 #endif 14 17 15 18 #else /* MS_WINDOWS */ -
python/trunk/configure.ac
r1150 r1538 3249 3249 #include <sys/socket.h> 3250 3250 #include <netinet/in.h> 3251 #ifdef __OS2__ 3252 #include <libcx/net.h> 3253 #endif 3251 3254 3252 3255 int main() … … 3254 3257 int passive, gaierr, inet4 = 0, inet6 = 0; 3255 3258 struct addrinfo hints, *ai, *aitop; 3259 #ifndef __OS2__ 3256 3260 char straddr[INET6_ADDRSTRLEN], strport[16]; 3261 #else 3262 char straddr[NI_MAXHOST], strport[NI_MAXSERV]; 3263 #endif 3257 3264 3258 3265 for (passive = 0; passive <= 1; passive++) { … … 3290 3297 inet4++; 3291 3298 break; 3299 #ifndef __OS2__ 3292 3300 case AF_INET6: 3293 3301 if (strcmp(strport, "54321") != 0) { … … 3305 3313 inet6++; 3306 3314 break; 3315 #endif 3307 3316 case AF_UNSPEC: 3308 3317 goto bad; … … 3394 3403 AC_MSG_CHECKING(for addrinfo) 3395 3404 AC_CACHE_VAL(ac_cv_struct_addrinfo, 3396 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <netdb.h>]], [[struct addrinfo a]])], 3405 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 3406 #include <netdb.h> 3407 #ifdef __OS2__ 3408 #include <libcx/net.h> 3409 #endif 3410 ]], [[struct addrinfo a]])], 3397 3411 [ac_cv_struct_addrinfo=yes], 3398 3412 [ac_cv_struct_addrinfo=no])) … … 4519 4533 #include <sys/socket.h> 4520 4534 #endif 4535 #ifdef __OS2__ 4536 #include <libcx/net.h> 4537 #endif 4521 4538 ]) 4522 4539
Note:
See TracChangeset
for help on using the changeset viewer.