apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mathihalli, Madhusudan" <mad...@hp.com>
Subject [PATCH] Recognize apr_socklen_t as 'int' to work correctly on IA64/HP-UX
Date Sat, 20 Mar 2004 01:40:01 GMT
Hi,
	On HP-UX/IA64 plaforms (11.22, 11.23), the socklen_t is defined as size_t. However, things
fail in Apache if the default value is used. The workaround is to use 'int' as a value for
apr_socklen_t. I've not yet contacted the networking folks here (which I'll do so shortly).

In the meanwhile, here's a patch to get things working !

Index: configure.in
===================================================================
RCS file: /home/cvs/apr/configure.in,v
retrieving revision 1.575
diff -u -r1.575 configure.in
--- configure.in        13 Mar 2004 01:24:42 -0000      1.575
+++ configure.in        20 Mar 2004 01:11:24 -0000
@@ -1125,6 +1125,13 @@
     socklen_t_value="int"
 fi
 
+case "$host:$CC" in
+    ia64-hp-hpux*:cc )
+       socklen_t_value="int"
+       ;;
+esac
+
+
 APR_CHECK_SIZEOF_EXTENDED([#include <sys/types.h>], ssize_t, 8)
 
 if test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_int"; then

Mime
View raw message