apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1)" <madhusudan_mathiha...@hp.com>
Subject [PATCH] apr_socklen_t value on HP-UX (64-bit)
Date Fri, 21 Feb 2003 21:13:31 GMT
For some strange reason, some of the HP-UX networking api's  are unable to
accept socklen_t as a 64-bit field when compiled in the 64-bit mode !!.
Hence, any/all bit- wise operations on that field fails.

Solution : Define apr_socklen_t as int (force it).

Thanks
-Madhu

Index: configure.in
===================================================================
RCS file: /home/cvspublic/apr/configure.in,v
retrieving revision 1.516
diff -u -r1.516 configure.in
--- configure.in        19 Feb 2003 12:48:48 -0000      1.516
+++ configure.in        21 Feb 2003 21:08:49 -0000
@@ -1157,6 +1157,12 @@
     socklen_t_value="int"
 fi
 
+case "$host" in
+    *hp-hpux* )
+       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