AC_CHECK_HEADERS([ \
execinfo.h \
mcheck.h \
-netinet/in.h \
sys/epoll.h \
sys/inotify.h \
sys/signalfd.h \
### Checks for header files
-AC_CHECK_HEADERS([sys/socket.h])
-AC_CHECK_HEADERS([net/if.h], [], [],
-[
-#include <stdio.h>
-#ifdef STDC_HEADERS
-# include <stdlib.h>
-# include <stddef.h>
-#else
-# ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-# endif
-#endif
-#ifdef HAVE_SYS_SOCKET_H
-# include <sys/socket.h>
-#endif
-])
-AC_CHECK_HEADERS([sys/un.h], [], [],
-[
-#include <stdio.h>
-#ifdef STDC_HEADERS
-# include <stdlib.h>
-# include <stddef.h>
-#else
-# ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-# endif
-#endif
-#ifdef HAVE_SYS_SOCKET_H
-# include <sys/socket.h>
-#endif
-])
-AC_CHECK_HEADERS([arpa/inet.h arpa/nameser.h netinet/tcp.h netinet/in.h ws2tcpip.h netdb.h])
+AC_CHECK_HEADERS([ws2tcpip.h netdb.h])
if test "x${ac_cv_header_netdb_h}" = "xno" && test "x${have_windows}" = "xno"; then
AC_MSG_ERROR([netdb.h is requested to have Ecore_Con. Exiting...])
[have_ipv6="yes"],
[have_ipv6="no"],
[[
-#ifdef HAVE_NETINET_IN_H
-# include <netinet/in.h>
-#endif
+#include <netinet/in.h>
#ifdef HAVE_WS2TCPIP_H
# include <ws2tcpip.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-
-#ifdef HAVE_NETINET_IN_H
-# include <netinet/in.h>
-#endif
+#include <netinet/in.h>
#ifdef HAVE_EVIL
# include <Evil.h>
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
-
-#ifdef HAVE_NETINET_TCP_H
-# include <netinet/tcp.h>
-#endif
-
-#ifdef HAVE_NETINET_IN_H
-# 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
-
-#ifdef HAVE_SYS_UN_H
-# include <sys/un.h>
-#endif
+#include <sys/socket.h>
+#include <netinet/tcp.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+#include <sys/un.h>
#ifdef HAVE_WS2TCPIP_H
# include <ws2tcpip.h>
if ((svr->type & ECORE_CON_TYPE) == ECORE_CON_REMOTE_NODELAY)
{
-#ifdef HAVE_NETINET_TCP_H
int flag = 1;
if (setsockopt(svr->fd, IPPROTO_TCP, TCP_NODELAY, (char *)&flag,
sizeof(int)) < 0)
-#endif
{
goto error;
}
if ((svr->type & ECORE_CON_TYPE) == ECORE_CON_REMOTE_NODELAY)
{
-#ifdef HAVE_NETINET_TCP_H
int flag = 1;
if (setsockopt(svr->fd, IPPROTO_TCP, TCP_NODELAY, (char *)&flag, sizeof(int)) < 0)
-#endif
{
goto error;
}
#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
+#include <netinet/in.h>
+#include <arpa/inet.h>
#include <ares.h>
#include <string.h>
#include <sys/types.h>
#include <errno.h> /* for EAGAIN */
-
-#ifdef HAVE_NETINET_IN_H
-# include <netinet/in.h>
-#endif
-
-#ifdef HAVE_ARPA_INET_H
-# include <arpa/inet.h>
-#endif
+#include <netinet/in.h>
+#include <arpa/inet.h>
#include "dns.h"
#include <unistd.h>
#include <fcntl.h>
#include <ctype.h>
+#include <sys/socket.h>
#ifdef __OpenBSD__
# 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
-
-#ifdef HAVE_ARPA_NAMESER_H
-# include <arpa/nameser.h>
-#endif
-
-#ifdef HAVE_SYS_SOCKET_H
-# include <sys/socket.h>
-#endif
+#include <netinet/in.h>
+#include <arpa/inet.h>
+#include <arpa/nameser.h>
#ifdef HAVE_NETDB_H
# include <netdb.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
-
-#ifdef HAVE_SYS_SOCKET_H
-# include <sys/socket.h>
-#endif
-
-#ifdef HAVE_SYS_UN_H
-# include <sys/un.h>
-#endif
+#include <sys/socket.h>
+#include <sys/un.h>
#ifdef HAVE_WS2TCPIP_H
# include <ws2tcpip.h>
#include <unistd.h>
#include <fcntl.h>
-#ifdef HAVE_SYS_SOCKET_H
-# include <sys/socket.h>
-#endif
-
-#ifdef HAVE_NETINET_TCP_H
-# include <netinet/tcp.h>
-#endif
-
-#ifdef HAVE_NET_IF_H
-# include <net/if.h>
-#endif
-
-/* if net/if.h is not found or if an older versions of net/if.h is provided
- which does not define IF_NAMESIZE. We must define it ourselves */
-#ifndef IF_NAMESIZE
-# ifdef IFNAMSIZ
-# define IF_NAMESIZE IFNAMSIZ
-# else
-# define IF_NAMESIZE 16
-# endif
-#endif
-
-#ifdef HAVE_NETINET_IN_H
-# include <netinet/in.h>
-#endif
-
-#ifdef HAVE_ARPA_INET_H
-# include <arpa/inet.h>
-#endif
-
-#ifdef HAVE_SYS_UN_H
-# include <sys/un.h>
-#endif
+#include <arpa/inet.h>
+#include <net/if.h>
+#include <netinet/in.h>
+#include <netinet/tcp.h>
+#include <sys/un.h>
+#include <sys/socket.h>
#ifdef HAVE_WS2TCPIP_H
# include <ws2tcpip.h>
#endif
#include <string.h>
-
-#ifdef HAVE_NETINET_IN_H
-# include <sys/types.h>
-# include <netinet/in.h>
-#endif
+#include <sys/types.h>
+#include <netinet/in.h>
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#include <sys/stat.h>
#include <unistd.h>
-#ifdef HAVE_NETINET_IN_H
-# include <netinet/in.h>
-#endif /* ifdef HAVE_NETINET_IN_H */
+#include <netinet/in.h>
#ifdef HAVE_SIGNATURE
# include <sys/mman.h>
#include <string.h>
#include <stdlib.h>
-
-#ifdef HAVE_NETINET_IN_H
-# include <netinet/in.h>
-#endif /* ifdef HAVE_NETINET_IN_H */
+#include <netinet/in.h>
#ifdef _WIN32
# include <winsock2.h>
#include <math.h>
#include <ctype.h>
#include <limits.h>
-
-#ifdef HAVE_NETINET_IN_H
-# include <netinet/in.h>
-#endif /* ifdef HAVE_NETINET_IN_H */
+#include <netinet/in.h>
#ifdef _WIN32
# include <winsock2.h>
# include <config.h>
#endif /* ifdef HAVE_CONFIG_H */
-#ifdef HAVE_NETINET_IN_H
-# ifdef __OpenBSD__
-# include <sys/types.h>
-# endif /* ifdef __OpenBSD__ */
-# include <netinet/in.h>
-#endif /* ifdef HAVE_NETINET_IN_H */
+#ifdef __OpenBSD__
+# include <sys/types.h>
+#endif /* ifdef __OpenBSD__ */
+#include <netinet/in.h>
#ifdef _WIN32
# include <winsock2.h>
#include <fnmatch.h>
#include <fcntl.h>
#include <zlib.h>
-
-#ifdef HAVE_NETINET_IN_H
-# include <netinet/in.h>
-#endif /* ifdef HAVE_NETINET_IN_H */
+#include <netinet/in.h>
#ifdef HAVE_EVIL
# include <Evil.h>
#include <unistd.h>
#include <sys/mman.h>
#include <fnmatch.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
#ifdef _WIN32
# include <winsock2.h>
#endif
-#ifdef HAVE_NETINET_IN_H
-# include <netinet/in.h>
-#endif
-
-#ifdef HAVE_ARPA_INET_H
-# include <arpa/inet.h>
-#endif
-
#include <Ecore.h>
#include <Ecore_File.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
-
-#ifdef HAVE_NETINET_IN_H
-# include <netinet/in.h>
-#endif
+#include <netinet/in.h>
#ifdef HAVE_EVIL
# include <Evil.h>