Efreet: include inet/in.h before arpa/inet.h. Needed by the OpenBSD port
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 14 Nov 2011 08:33:22 +0000 (08:33 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 14 Nov 2011 08:33:22 +0000 (08:33 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/efreet@65156 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac
src/lib/efreet_mime.c

index 8ba25e1..5affc4f 100644 (file)
@@ -154,7 +154,7 @@ PKG_CHECK_MODULES(EINA, [eina >= 1.0.0])
 
 ### Checks for header files
 
-AC_CHECK_HEADERS([arpa/inet.h])
+AC_CHECK_HEADERS([netinet/in.h arpa/inet.h])
 
 ### Checks for types
 
index 6960aee..2c3002d 100644 (file)
@@ -31,6 +31,10 @@ void *alloca (size_t);
 # include <winsock2.h>
 #endif
 
+#ifdef HAVE_NETINET_IN_H
+# include <netinet/in.h>
+#endif
+
 #ifdef HAVE_ARPA_INET_H
 # include <arpa/inet.h>
 #endif