empserver/m4
Markus Armbruster a164390d1f w32: Modernize for MinGW 6.0.0, and clean up
We provide gettimeofday() only #ifdef _MSC_VER, but declare it
unconditionally in our own sys/time.h.  This is asking for trouble.
Declare it only #ifdef _MSC_VER, else pull in MinGW's sys/time.h with
#include_next.

Likewise, define macros ftruncate(), S_IRUSR & friends in our own
unistd.h only #ifdef _MSC_VER, else pull in MinGW's unistd.h with
#include_next.  The #include <getopt.h> is now useless, drop.

src/lib/commands/info.c relies on sys/time.h including windows.h.
Unclean, and no longer the case with MinGW.  Include it directly.

MinGW provides EWOULDBLOCK.  Drop our replacement.

MinGW provides inet_ntop() in ws2tcpip.h, but only if feature test
macro _WIN32_WINNT >= 0x600, i.e. Windows Vista or later.  It defaults
to 0x0502 (Windows Server 2003).  Make configure #define _WIN32_WINNT
0x0601 in config.h.  This requests Windows 7.  Trying to support Vista
feels unwise.  Include ws2tcpip.h, and drop our replacement.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2021-02-13 19:25:18 +01:00
..
ax_append_flag.m4 m4: Refresh macros from autoconf-archive commit fd1d25c148 2021-01-23 07:08:03 +01:00
ax_append_link_flags.m4 m4: Refresh macros from autoconf-archive commit fd1d25c148 2021-01-23 07:08:03 +01:00
ax_check_compile_flag.m4 m4: Refresh macros from autoconf-archive commit fd1d25c148 2021-01-23 07:08:03 +01:00
ax_check_link_flag.m4 m4: Refresh macros from autoconf-archive commit fd1d25c148 2021-01-23 07:08:03 +01:00
ax_lib_socket_nsl.m4 m4: Refresh macros from autoconf-archive commit fd1d25c148 2021-01-23 07:08:03 +01:00
ax_pthread.m4 m4: Refresh macros from autoconf-archive commit fd1d25c148 2021-01-23 07:08:03 +01:00
ax_require_defined.m4 m4: Refresh macros from autoconf-archive commit fd1d25c148 2021-01-23 07:08:03 +01:00
my_append_compile_flags.m4 configure: Use -fstack-protector-strong when available 2015-12-05 13:19:38 +01:00
my_func_makecontext.m4 LWP doesn't work with Darwin due to OS bugs, avoid it for now 2008-12-07 17:25:35 -05:00
my_lib_readline.m4 m4/my_lib_readline: Fix check for additional libraries 2021-01-23 07:08:21 +01:00
my_terminfo.m4 m4: Make MY_WITH_TERMINFO consistent with MY_WITH_READLINE 2017-08-06 11:22:29 +02:00
my_windows_api.m4 w32: Modernize for MinGW 6.0.0, and clean up 2021-02-13 19:25:18 +01:00
my_working_in6_is_addr_v4mapped.m4 Fix build for systems that don't provide POSIX.1-2001 by default 2021-01-23 07:08:03 +01:00