From: Enlightenment S. <no-...@en...> - 2011-11-14 22:25:14
|
Log: Ecore: fix warning: 'struct in_addr' declared inside parameter list on OpenBSD Patch by Fabien Romano from OpenBSD Author: caro Date: 2011-11-14 14:25:07 -0800 (Mon, 14 Nov 2011) New Revision: 65210 Trac: http://trac.enlightenment.org/e/changeset/65210 Modified: trunk/ecore/src/lib/ecore_con/ecore_con.c trunk/ecore/src/lib/ecore_con/ecore_con_ares.c trunk/ecore/src/lib/ecore_con/ecore_con_info.c Modified: trunk/ecore/src/lib/ecore_con/ecore_con.c =================================================================== --- trunk/ecore/src/lib/ecore_con/ecore_con.c 2011-11-14 22:23:36 UTC (rev 65209) +++ trunk/ecore/src/lib/ecore_con/ecore_con.c 2011-11-14 22:25:07 UTC (rev 65210) @@ -10,10 +10,6 @@ #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 @@ -22,6 +18,10 @@ # 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 Modified: trunk/ecore/src/lib/ecore_con/ecore_con_ares.c =================================================================== --- trunk/ecore/src/lib/ecore_con/ecore_con_ares.c 2011-11-14 22:23:36 UTC (rev 65209) +++ trunk/ecore/src/lib/ecore_con/ecore_con_ares.c 2011-11-14 22:25:07 UTC (rev 65210) @@ -10,7 +10,12 @@ */ #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> #endif Modified: trunk/ecore/src/lib/ecore_con/ecore_con_info.c =================================================================== --- trunk/ecore/src/lib/ecore_con/ecore_con_info.c 2011-11-14 22:23:36 UTC (rev 65209) +++ trunk/ecore/src/lib/ecore_con/ecore_con_info.c 2011-11-14 22:25:07 UTC (rev 65210) @@ -34,6 +34,10 @@ # 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 @@ # 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 |