Enable better build-time flexibility over which WinSock to include
[u/mdw/putty] / plink.c
diff --git a/plink.c b/plink.c
index db48d54..0a74062 100644 (file)
--- a/plink.c
+++ b/plink.c
@@ -2,7 +2,9 @@
  * PLink - a command-line (stdin/stdout) variant of PuTTY.
  */
 
+#ifndef AUTO_WINSOCK
 #include <winsock2.h>
+#endif
 #include <windows.h>
 #include <stdio.h>
 #include <stdarg.h>