summaryrefslogtreecommitdiff
path: root/www/cherokee-devel/files/patch-cherokee-util.h
blob: 2d395ea092ed1460044221a39bb64d6a00af17fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- cherokee/util.h.orig	Mon Aug  1 21:47:22 2005
+++ cherokee/util.h	Thu Aug  4 21:05:15 2005
@@ -33,7 +33,19 @@
 #include <cherokee/buffer.h>
 #include <time.h>
 #include <dirent.h>
-#include <netinet/in.h>
+#include <sys/types.h>
+
+#ifdef HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif
+
+#ifdef HAVE_ARPA_INET_H
+# include <arpa/inet.h>
+#endif
+
+#ifdef HAVE_NETINET_IN_H
+# include <netinet/in.h>
+#endif
 
 
 CHEROKEE_BEGIN_DECLS