From: caro Date: Mon, 14 Nov 2011 22:25:07 +0000 (+0000) Subject: Ecore: fix warning: 'struct in_addr' declared inside parameter list on OpenBSD X-Git-Tag: 2.0_alpha~122^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec93b31e1a11c24caf81773703fccddeb61b0771;p=framework%2Fuifw%2Fecore.git Ecore: fix warning: 'struct in_addr' declared inside parameter list on OpenBSD 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 --- diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c index c70061f..295b69d 100644 --- a/src/lib/ecore_con/ecore_con.c +++ b/src/lib/ecore_con/ecore_con.c @@ -10,10 +10,6 @@ #include #include -#ifdef HAVE_ARPA_INET_H -# include -#endif - #ifdef HAVE_NETINET_TCP_H # include #endif @@ -22,6 +18,10 @@ # include #endif +#ifdef HAVE_ARPA_INET_H +# include +#endif + #ifdef HAVE_SYS_SOCKET_H # include #endif diff --git a/src/lib/ecore_con/ecore_con_ares.c b/src/lib/ecore_con/ecore_con_ares.c index 3e3b05c..dd5a212 100644 --- a/src/lib/ecore_con/ecore_con_ares.c +++ b/src/lib/ecore_con/ecore_con_ares.c @@ -10,6 +10,11 @@ */ #include +#include + +#ifdef HAVE_NETINET_IN_H +# include +#endif #ifdef HAVE_ARPA_INET_H # include diff --git a/src/lib/ecore_con/ecore_con_info.c b/src/lib/ecore_con/ecore_con_info.c index 62ce6bf..4ece6b0 100644 --- a/src/lib/ecore_con/ecore_con_info.c +++ b/src/lib/ecore_con/ecore_con_info.c @@ -34,6 +34,10 @@ void *alloca(size_t); # include #endif +#ifdef HAVE_NETINET_IN_H +# include +#endif + #ifdef HAVE_ARPA_INET_H # include #endif @@ -42,10 +46,6 @@ void *alloca(size_t); # include #endif -#ifdef HAVE_NETINET_IN_H -# include -#endif - #ifdef HAVE_SYS_SOCKET_H # include #endif