From 4bca9eb581183c88b6d17f66189f1dff72683bce Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 8 Mar 2025 02:02:22 +0100 Subject: [PATCH] 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 --- lib/curl_setup_once.h | 3 --- 1 file changed, 3 deletions(-) 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 /* -- 2.47.3