projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Enable better build-time flexibility over which WinSock to include
[u/mdw/putty]
/
telnet.c
diff --git
a/telnet.c
b/telnet.c
index
5e6ba3c
..
6618fdf
100644
(file)
--- a/
telnet.c
+++ b/
telnet.c
@@
-1,7
+1,13
@@
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
+#ifndef AUTO_WINSOCK
+#ifdef WINSOCK_TWO
+#include <winsock2.h>
+#else
#include <winsock.h>
+#endif
+#endif
#include "putty.h"