]> granicus.if.org Git - python/commitdiff
Bug #934635: Fix a bug where the configure script couldn't detect
authorHye-Shik Chang <hyeshik@gmail.com>
Wed, 14 Apr 2004 07:55:31 +0000 (07:55 +0000)
committerHye-Shik Chang <hyeshik@gmail.com>
Wed, 14 Apr 2004 07:55:31 +0000 (07:55 +0000)
getaddrinfo() properly if the KAME stack had SCTP support.
(Submitted by SUZUKI Shinsuke)

Misc/NEWS
configure
configure.in

index f2aa338702299dfce5babfef5791d2abfe329ca5..2fb60230c21b18510d71db54076fa35cd4bfbef2 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -445,6 +445,9 @@ Tools/Demos
 Build
 -----
 
+- Bug #934635: Fixed a bug where the configure script couldn't detect
+  getaddrinfo() properly if the KAME stack had SCTP support.
+
 - Support for missing ANSI C header files (limits.h, stddef.h, etc) was
   removed.
 
index 14411a6744e72ef40c82f24dbc7083284d12f5c6..a05cfd27283569420d913b4646eb0dc64e6beb15 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 1.452 .
+# From configure.in Revision: 1.453 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.57 for python 2.4.
 #
@@ -14151,6 +14151,7 @@ main()
     hints.ai_family = AF_UNSPEC;
     hints.ai_flags = passive ? AI_PASSIVE : 0;
     hints.ai_socktype = SOCK_STREAM;
+    hints.ai_protocol = IPPROTO_TCP;
     if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
       (void)gai_strerror(gaierr);
       goto bad;
index 46e290a109910d9b8c53c8b483f62cf329b9ef81..70f11091f3a008bc05e98f9520f0f05d29839aa1 100644 (file)
@@ -2214,6 +2214,7 @@ main()
     hints.ai_family = AF_UNSPEC;
     hints.ai_flags = passive ? AI_PASSIVE : 0;
     hints.ai_socktype = SOCK_STREAM;
+    hints.ai_protocol = IPPROTO_TCP;
     if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
       (void)gai_strerror(gaierr);
       goto bad;