summaryrefslogtreecommitdiff
path: root/tool/uriparse.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhsoting.net>2022-10-29 22:31:53 +0200
committerJörg Frings-Fürst <debian@jff-webhsoting.net>2022-10-29 22:31:53 +0200
commit89fb04a92f080a266c9b509cb522a4b8e8ad92de (patch)
tree8569378dcf6086eef4af28d270fff284ce3018ad /tool/uriparse.c
parent592ab485a70ab4c8e4cefc37bbdfb76110f9205e (diff)
New upstream version 0.9.7upstream/0.9.7upstream
Diffstat (limited to 'tool/uriparse.c')
-rw-r--r--tool/uriparse.c8
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");
}