From bc17a43384f7cab96f6fa766f3613490b6f0925b Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Mon, 14 Nov 2011 22:25:07 +0000 Subject: [PATCH] Ecore: fix warning: 'struct in_addr' declared inside parameter list on OpenBSD Patch by Fabien Romano from OpenBSD SVN revision: 65210 --- legacy/ecore/src/lib/ecore_con/ecore_con.c | 8 ++++---- legacy/ecore/src/lib/ecore_con/ecore_con_ares.c | 5 +++++ legacy/ecore/src/lib/ecore_con/ecore_con_info.c | 8 ++++---- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/legacy/ecore/src/lib/ecore_con/ecore_con.c b/legacy/ecore/src/lib/ecore_con/ecore_con.c index c70061f306..295b69d826 100644 --- a/legacy/ecore/src/lib/ecore_con/ecore_con.c +++ b/legacy/ecore/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/legacy/ecore/src/lib/ecore_con/ecore_con_ares.c b/legacy/ecore/src/lib/ecore_con/ecore_con_ares.c index 3e3b05caac..dd5a212546 100644 --- a/legacy/ecore/src/lib/ecore_con/ecore_con_ares.c +++ b/legacy/ecore/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/legacy/ecore/src/lib/ecore_con/ecore_con_info.c b/legacy/ecore/src/lib/ecore_con/ecore_con_info.c index 62ce6bfbca..4ece6b00c1 100644 --- a/legacy/ecore/src/lib/ecore_con/ecore_con_info.c +++ b/legacy/ecore/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