diff options
author | Jörg Frings-Fürst <debian@jff-webhsoting.net> | 2022-10-29 22:31:54 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhsoting.net> | 2022-10-29 22:31:54 +0200 |
commit | 1d7d65107664f3451d7384598209e5dfcbb871cc (patch) | |
tree | 697f20d2671106e317eafdc9535693e4aa8535db /tool/uriparse.c | |
parent | 130dc6e51879b4e337a53719ef325c7d6b3dae94 (diff) | |
parent | 89fb04a92f080a266c9b509cb522a4b8e8ad92de (diff) |
Update upstream source from tag 'upstream/0.9.7'
Update to upstream version '0.9.7'
with Debian dir a1725178295b04eea09922bc77f9b7c5c80fca49
Diffstat (limited to 'tool/uriparse.c')
-rw-r--r-- | tool/uriparse.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tool/uriparse.c b/tool/uriparse.c index 027f2d2..edd9e04 100644 --- a/tool/uriparse.c +++ b/tool/uriparse.c @@ -43,9 +43,11 @@ #ifdef _WIN32 # include <winsock2.h> # include <ws2tcpip.h> -# ifdef __MINGW32__ +# if defined(__MINGW32__) && \ + (!defined(__MINGW64_VERSION_MAJOR) || __MINGW64_VERSION_MAJOR < 3 || \ + _WIN32_WINNT < _WIN32_WINNT_VISTA) WINSOCK_API_LINKAGE const char * WSAAPI inet_ntop( - int af, const void *src, char *dst, socklen_t size); + int af, const void *src, char *dst, size_t size); # endif #else # include <sys/socket.h> @@ -57,7 +59,7 @@ WINSOCK_API_LINKAGE const char * WSAAPI inet_ntop( #define RANGE(x) (int)((x).afterLast-(x).first), ((x).first) -void usage() { +void usage(void) { printf("Usage: uriparse URI [..]\n"); } |