httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Ames <grega...@raleigh.ibm.com>
Subject [PATCH] htonl unresolved in http_config.c
Date Fri, 23 Jun 2000 19:15:58 GMT
The htonl() in main/http_config.c wasn't being resolved on OS/390 because it requires
arpa/inet.h.   I believe this is due to the recent cleanup of include/ap_config.h.  Doing
the #ifdef/#include in httpd_config.c works fine also, but looks kinda ugly to me - I'd
rather let APR take care of platform differences when possible.

Greg

Index: lib/apr/include/apr_network_io.h
===================================================================
RCS file: /cvs/apache/apache-2.0/src/lib/apr/include/apr_network_io.h,v
retrieving revision 1.42
diff -u -d -b -w -r1.42 apr_network_io.h
--- apr_network_io.h    2000/06/22 19:09:44 1.42
+++ apr_network_io.h    2000/06/23 18:54:23
@@ -62,6 +62,9 @@
 #if APR_HAVE_NETINET_IN_H
 #include <netinet/in.h>
 #endif
+#ifdef HAVE_ARPA_INET_H
+#include <arpa/inet.h>
+#endif

 #ifdef __cplusplus
 extern "C" {





Mime
View raw message