Fix compilation on OpenBSD (ticket #252). Patch by eumel
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 22 Mar 2009 13:30:52 +0000 (13:30 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 22 Mar 2009 13:30:52 +0000 (13:30 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@39625 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore/ecore_exe.c
src/lib/ecore_con/ecore_con_dns.c
src/lib/ecore_con/ecore_con_info.c

index 25248c5..9d476c6 100644 (file)
@@ -6,7 +6,7 @@
 # include <config.h>
 #endif
 
-#ifdef __FreeBSD__
+#if defined (__FreeBSD__) || defined (__OpenBSD__)
 #include <sys/time.h>
 #include <sys/resource.h>
 #endif
index 0b7b29b..4ae6f7c 100644 (file)
@@ -34,6 +34,9 @@
 
 #include <string.h>
 #include <ctype.h>
+#ifdef __OpenBSD__
+# include <sys/types.h>
+#endif
 #include <netinet/in.h>
 #include <sys/socket.h>
 #include <arpa/inet.h>
index 61ce499..45ed162 100644 (file)
@@ -15,6 +15,9 @@
 
 #include <string.h>
 #include <ctype.h>
+#ifdef __OpenBSD__
+# include <sys/types.h>
+#endif
 #include <netinet/in.h>
 #include <sys/socket.h>
 #include <arpa/inet.h>