From 4e6f2c60a38817a7698a93eddc860918ec6b6e67 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Mon, 27 Jun 2022 16:15:14 +0200 Subject: [PATCH] inet_pton: don't redefine EAFNOSUPPORT for Win32 It's officially supported by the Windows SDK. Callers of these POSIX API's don't expect to check errno is WSAEAFNOSUPPORT. --- compat/inet_pton.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/compat/inet_pton.c b/compat/inet_pton.c index 38c2281d2e..44fd850ae6 100644 --- a/compat/inet_pton.c +++ b/compat/inet_pton.c @@ -31,8 +31,6 @@ #elif defined(_WIN32) # include # include -# undef EAFNOSUPPORT -# define EAFNOSUPPORT WSAEAFNOSUPPORT #endif int inet_pton (int af, const char *src, void *dst)