Ecore: fix warning: 'struct in_addr' declared inside parameter list on OpenBSD
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 14 Nov 2011 22:25:07 +0000 (22:25 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 14 Nov 2011 22:25:07 +0000 (22:25 +0000)
Patch by Fabien Romano from OpenBSD

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@65210 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_con/ecore_con.c
src/lib/ecore_con/ecore_con_ares.c
src/lib/ecore_con/ecore_con_info.c

index c70061f..295b69d 100644 (file)
 #include <unistd.h>
 #include <fcntl.h>
 
-#ifdef HAVE_ARPA_INET_H
-# include <arpa/inet.h>
-#endif
-
 #ifdef HAVE_NETINET_TCP_H
 # include <netinet/tcp.h>
 #endif
 # include <netinet/in.h>
 #endif
 
+#ifdef HAVE_ARPA_INET_H
+# include <arpa/inet.h>
+#endif
+
 #ifdef HAVE_SYS_SOCKET_H
 # include <sys/socket.h>
 #endif
index 3e3b05c..dd5a212 100644 (file)
  */
 
 #include <string.h>
+#include <sys/types.h>
+
+#ifdef HAVE_NETINET_IN_H
+# include <netinet/in.h>
+#endif
 
 #ifdef HAVE_ARPA_INET_H
 # include <arpa/inet.h>
index 62ce6bf..4ece6b0 100644 (file)
@@ -34,6 +34,10 @@ void *alloca(size_t);
 # include <sys/types.h>
 #endif
 
+#ifdef HAVE_NETINET_IN_H
+# include <netinet/in.h>
+#endif
+
 #ifdef HAVE_ARPA_INET_H
 # include <arpa/inet.h>
 #endif
@@ -42,10 +46,6 @@ void *alloca(size_t);
 # include <arpa/nameser.h>
 #endif
 
-#ifdef HAVE_NETINET_IN_H
-# include <netinet/in.h>
-#endif
-
 #ifdef HAVE_SYS_SOCKET_H
 # include <sys/socket.h>
 #endif