Make sure ECONNRESET is correct on windows for gpfdist
ECONNRESET is defined as POSIX errno(108) in some windows build environment.
Then gpfdist doesn't redefine it. But that is incorrect value on windows.
So we make sure ECONNRESET is defined as WSAECONNRESET in gpfdist.
#include <io.h>
#define SHUT_WR SD_SEND
#define socklen_t int
-#ifndef ECONNRESET
+#undef ECONNRESET
#define ECONNRESET WSAECONNRESET
#endif
-#endif
-
#include <postgres.h>
#include <pg_config.h>
#include <pg_config_manual.h>
