Miscellaneous fixes to try to make other compilers happier
[u/mdw/putty] / ldisc.c
diff --git a/ldisc.c b/ldisc.c
index 819360d..b72c772 100644 (file)
--- a/ldisc.c
+++ b/ldisc.c
@@ -1,4 +1,11 @@
 #include <windows.h>
+#ifndef AUTO_WINSOCK
+#ifdef WINSOCK_TWO
+#include <winsock2.h>
+#else
+#include <winsock.h>
+#endif
+#endif
 #include <stdio.h>
 #include <ctype.h>