]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl_setup_once: stop redefining `ENAMETOOLONG` to winsock2 error code
authorViktor Szakats <commit@vsz.me>
Sat, 8 Mar 2025 01:02:22 +0000 (02:02 +0100)
committerViktor Szakats <commit@vsz.me>
Sat, 8 Mar 2025 03:30:54 +0000 (04:30 +0100)
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

index f549d25ce54fea7116ddbb4330b32e6cea6b6cb3..0bba02348dc7833e98859e97ffbf88f7741d4e38 100644 (file)
@@ -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
 
 /*