apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1343243 - /apr/apr/trunk/network_io/unix/sockaddr.c
Date Mon, 28 May 2012 13:20:01 GMT
Author: sf
Date: Mon May 28 13:20:00 2012
New Revision: 1343243

URL: http://svn.apache.org/viewvc?rev=1343243&view=rev
Log:
Guard against EAI_ADDRFAMILY not being defined, it seems to be glibc
specific

Modified:
    apr/apr/trunk/network_io/unix/sockaddr.c

Modified: apr/apr/trunk/network_io/unix/sockaddr.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/network_io/unix/sockaddr.c?rev=1343243&r1=1343242&r2=1343243&view=diff
==============================================================================
--- apr/apr/trunk/network_io/unix/sockaddr.c (original)
+++ apr/apr/trunk/network_io/unix/sockaddr.c Mon May 28 13:20:00 2012
@@ -380,7 +380,10 @@ static apr_status_t call_resolver(apr_so
      * In case of EAI_BADFLAGS, AI_ADDRCONFIG is not supported.
      */
     if ((family == APR_UNSPEC) && (error == EAI_BADFLAGS
-                                   || error == EAI_ADDRFAMILY)) {
+#ifdef EAI_ADDRFAMILY
+                                   || error == EAI_ADDRFAMILY
+#endif
+                                                             )) {
         hints.ai_flags &= ~AI_ADDRCONFIG;
         error = getaddrinfo(hostname, servname, &hints, &ai_list);
     }



Mime
View raw message