From 63b80068976fbc5460c284aef0e6560abcf13e68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 12 Jan 2019 17:38:40 +0100 Subject: New upstream version 0.9.1 --- tool/uriparse.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'tool/uriparse.c') diff --git a/tool/uriparse.c b/tool/uriparse.c index e9c1218..fc8bbb5 100644 --- a/tool/uriparse.c +++ b/tool/uriparse.c @@ -36,12 +36,20 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include #include #include #include -#include -#include + +#ifdef _WIN32 +# include +# include +WINSOCK_API_LINKAGE const char WSAAPI inet_ntop( + int af, const void *src, char *dst, socklen_t size); +#else +# include +# include +# include +#endif #define RANGE(x) (int)((x).afterLast-(x).first), ((x).first) @@ -76,7 +84,8 @@ int main(int argc, char *argv[]) { : (state.errorCode == URI_ERROR_MALLOC) ? "not enough memory" : "liburiparser bug (please report)", - state.errorPos, state.errorPos - argv[i]); + state.errorPos, + (long unsigned int)(state.errorPos - argv[i])); retval = EXIT_FAILURE; } else { if (uri.scheme.first) { -- cgit v1.2.3