diff --git a/lib/setup.h b/lib/setup.h
index fff69747117a7f61ee52e49f0510807a9d7a5bbe..c18fd4a060fc561099c41b8c840131ac552ee87c 100644
--- a/lib/setup.h
+++ b/lib/setup.h
@@ -270,16 +270,6 @@ typedef int curl_socket_t;
 #define IOCTL_3_ARGS
 #endif
 
-#ifndef ECONNRESET
-#ifdef WSAECONNRESET
-#define ECONNRESET WSAECONNRESET
-#else
-/* This will effectively prevent the code from working in this particular
-   aspect, but it still compile fine! */
-#define ECONNRESET 10000
-#endif
-#endif
-
 #ifdef NETWARE
 #undef HAVE_ALARM
 #endif