Ecore: fix warning: 'struct in_addr' declared inside parameter list on OpenBSD
authorVincent Torri <vincent.torri@gmail.com>
Mon, 14 Nov 2011 22:25:07 +0000 (22:25 +0000)
committerVincent Torri <vincent.torri@gmail.com>
Mon, 14 Nov 2011 22:25:07 +0000 (22:25 +0000)
Patch by Fabien Romano from OpenBSD

SVN revision: 65210

legacy/ecore/src/lib/ecore_con/ecore_con.c
legacy/ecore/src/lib/ecore_con/ecore_con_ares.c
legacy/ecore/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