Ecore: fix warning: 'struct in_addr' declared inside parameter list on OpenBSD

Patch by Fabien Romano from OpenBSD


SVN revision: 65210
This commit is contained in:
Vincent Torri 2011-11-14 22:25:07 +00:00
parent fc5e116745
commit bc17a43384
3 changed files with 13 additions and 8 deletions

View File

@ -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

View File

@ -10,6 +10,11 @@
*/
#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>

View 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