remove useless check of ws2tcpip.h

Summary: it is useless to check for header files which necessarly exist

Test Plan: compilation

Reviewers: raster, cedric, zmike

Reviewed By: zmike

Subscribers: #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8535
This commit is contained in:
Vincent Torri 2019-04-02 10:09:24 -04:00 committed by Mike Blumenkrantz
parent 96f1e29709
commit b41ed254a9
7 changed files with 16 additions and 25 deletions

View File

@ -3258,7 +3258,7 @@ EFL_EVAL_PKGS([ECORE_CON])
### Checks for header files
AC_CHECK_HEADERS([ws2tcpip.h netdb.h sys/filio.h])
AC_CHECK_HEADERS([netdb.h sys/filio.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...])
@ -3266,18 +3266,19 @@ fi
### Checks for types
have_ipv6="no"
AC_CHECK_TYPES([struct ipv6_mreq],
[have_ipv6="yes"],
[have_ipv6="no"],
[[
if test "x${have_win32}" = "xyes" ; then
have_ipv6="yes"
else
have_ipv6="no"
AC_CHECK_TYPES([struct ipv6_mreq],
[have_ipv6="yes"],
[have_ipv6="no"],
[[
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
#ifdef HAVE_WS2TCPIP_H
# include <ws2tcpip.h>
#endif
]])
]])
fi
AC_DEFINE_IF([HAVE_IPV6],
[test "x${have_ipv6}" = "xyes"],

View File

@ -52,7 +52,6 @@ header_checks = [
'langinfo.h',
'locale.h',
'uv.h',
'ws2tcpip.h',
'crt_externs.h'
]

View File

@ -38,11 +38,8 @@
# include <systemd/sd-daemon.h>
#endif
#ifdef HAVE_WS2TCPIP_H
# include <ws2tcpip.h>
#endif
#ifdef _WIN32
# include <ws2tcpip.h>
# include <Evil.h>
#endif

View File

@ -17,7 +17,7 @@
# include <systemd/sd-daemon.h>
#endif
#ifdef HAVE_WS2TCPIP_H
#ifdef _WIN32
# include <ws2tcpip.h>
#endif

View File

@ -34,11 +34,8 @@
# include <net/if.h>
#endif
#ifdef HAVE_WS2TCPIP_H
# include <ws2tcpip.h>
#endif
#ifdef _WIN32
# include <ws2tcpip.h>
# include <Evil.h>
#endif

View File

@ -8,7 +8,7 @@
#include <sys/types.h>
#include <unistd.h>
#ifdef HAVE_WS2TCPIP_H
#ifdef _WIN32
# include <ws2tcpip.h>
#endif

View File

@ -2,10 +2,7 @@ ecore_con_deps = []
ecore_con_pub_deps = [eina, eo, efl, ecore]
if sys_windows == true
ipv6 = cc.compiles('''
#include <ws2tcpip.h>
struct ipv6_mreq tmp;
''')
ipv6 = true
else
ipv6 = cc.compiles('''
#include <netinet/in.h>