apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r751558 - /apr/apr/trunk/build/aprenv.py
Date Mon, 09 Mar 2009 00:11:00 GMT
Author: pquerna
Date: Mon Mar  9 00:10:59 2009
New Revision: 751558

URL: http://svn.apache.org/viewvc?rev=751558&view=rev
Log:
SCons:
 Add tests for iovec and sockaddr_un.

Modified:
    apr/apr/trunk/build/aprenv.py

Modified: apr/apr/trunk/build/aprenv.py
URL: http://svn.apache.org/viewvc/apr/apr/trunk/build/aprenv.py?rev=751558&r1=751557&r2=751558&view=diff
==============================================================================
--- apr/apr/trunk/build/aprenv.py (original)
+++ apr/apr/trunk/build/aprenv.py Mon Mar  9 00:10:59 2009
@@ -567,8 +567,17 @@
     else:
         subst['@apr_charset_ebcdic@'] = 0
 
-    subst['@have_iovec@'] = 1
-    subst['@have_sockaddr_un@'] = 0
+    if conf.CheckType('struct iovec', includes='#include <sys/types.h>\n#include <sys/uio.h>'):
+      subst['@have_iovec@'] = 1
+    else:
+      subst['@have_iovec@'] = 0
+    
+
+    if conf.CheckType('struct sockaddr_un', includes='#include <sys/un.h>'):
+      subst['@have_sockaddr_un@'] = 1
+    else:
+      subst['@have_sockaddr_un@'] = 0
+
     subst['@proc_mutex_is_global@'] = 0
     subst['@hasprocpthreadser@'] = 0
     



Mime
View raw message