You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by "MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1)" <ma...@hp.com> on 2003/02/21 22:13:31 UTC

[PATCH] apr_socklen_t value on HP-UX (64-bit)

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