Revision: 14494
Author: adrian.chadd
Date: Wed Mar 24 23:12:32 2010
Log: Issue #94 portability fixes


http://code.google.com/p/lusca-cache/source/detail?r=14494

Modified:
 /branches/LUSCA_HEAD/libhelper/helper.c
 /branches/LUSCA_HEAD/libhttp/HttpHeaderMask.c

=======================================
--- /branches/LUSCA_HEAD/libhelper/helper.c     Tue Jan  6 13:40:17 2009
+++ /branches/LUSCA_HEAD/libhelper/helper.c     Wed Mar 24 23:12:32 2010
@@ -38,14 +38,22 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
+#if HAVE_STRING_H
 #include <string.h>
-#include <math.h>
-#include <fcntl.h>
+#endif
 #include <ctype.h>
-#include <sys/errno.h>
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
+#if HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
+#endif
+#if HAVE_NETINET_IN_H
 #include <netinet/in.h>
+#endif
+#if HAVE_ARPA_INET_H
 #include <arpa/inet.h>
+#endif

 #include "../include/Array.h"
 #include "../include/Stack.h"
=======================================
--- /branches/LUSCA_HEAD/libhttp/HttpHeaderMask.c       Tue Aug 26 08:57:41 2008
+++ /branches/LUSCA_HEAD/libhttp/HttpHeaderMask.c       Wed Mar 24 23:12:32 2010
@@ -40,9 +40,15 @@
 #include <string.h>
 #include <math.h>
 #include <fcntl.h>
-#include <sys/errno.h>
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
+#if HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
+#endif
+#if HAVE_NETINET_IN_H
 #include <netinet/in.h>
+#endif

 #include "../include/Array.h"
 #include "../include/Stack.h"

--
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en.

Reply via email to