summaryrefslogtreecommitdiff
path: root/extra/resolveip.c
diff options
context:
space:
mode:
authorkent@mysql.com/kent-amd64.(none) <>2007-12-28 01:02:28 +0100
committerkent@mysql.com/kent-amd64.(none) <>2007-12-28 01:02:28 +0100
commit18418ff8c5c6d3700bc199417d0dd57af7d9b918 (patch)
tree6fa0c805dd368a5b9ad7731ce4f722da70c8472d /extra/resolveip.c
parentbf1ba3d416e3b05a6585c29c8f5050d3dae5ec55 (diff)
downloadmariadb-git-18418ff8c5c6d3700bc199417d0dd57af7d9b918.tar.gz
make_win_bin_dist CMakeLists.txt resolveip.c Makefile.am:
Better Windows support in the scripts directory mysql_config.pl.in, mysql_install_db.pl.in: New Perl version of Unix shell script, mainly for Windows Many files in scripts directory: Use default Perl location "#!/usr/bin/perl" instead of the build host path
Diffstat (limited to 'extra/resolveip.c')
-rw-r--r--extra/resolveip.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/extra/resolveip.c b/extra/resolveip.c
index 1061cafe380..b48a782c9c9 100644
--- a/extra/resolveip.c
+++ b/extra/resolveip.c
@@ -21,13 +21,15 @@
#include <m_ctype.h>
#include <my_sys.h>
#include <m_string.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#ifndef HAVE_BROKEN_NETINET_INCLUDES
-#include <netinet/in.h>
+#ifndef WIN32
+# include <sys/types.h>
+# include <sys/socket.h>
+# ifndef HAVE_BROKEN_NETINET_INCLUDES
+# include <netinet/in.h>
+# endif
+# include <arpa/inet.h>
+# include <netdb.h>
#endif
-#include <arpa/inet.h>
-#include <netdb.h>
#include <my_net.h>
#include <my_getopt.h>