From: Viktor Szakats Date: Sat, 8 Mar 2025 01:02:22 +0000 (+0100) Subject: curl_setup_once: stop redefining `ENAMETOOLONG` to winsock2 error code X-Git-Tag: curl-8_13_0~214 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bca9eb581183c88b6d17f66189f1dff72683bce;p=thirdparty%2Fcurl.git curl_setup_once: stop redefining `ENAMETOOLONG` to winsock2 error code The only user is error display code following an `mkdir()` call. In this case the redefinition didn't cause an issue, but was unnecessary. Follow-up to d69425ed7d0918aceddd96048b146a9df85638ec #16615 Closes #16620 --- diff --git a/lib/curl_setup_once.h b/lib/curl_setup_once.h index f549d25ce5..0bba02348d 100644 --- a/lib/curl_setup_once.h +++ b/lib/curl_setup_once.h @@ -337,9 +337,6 @@ typedef unsigned int bit; #define ETIMEDOUT WSAETIMEDOUT #undef ECONNREFUSED /* override definition in errno.h */ #define ECONNREFUSED WSAECONNREFUSED -#ifndef ENAMETOOLONG /* possible previous definition in errno.h */ -#define ENAMETOOLONG WSAENAMETOOLONG -#endif #endif /*