aboutsummaryrefslogtreecommitdiffstats
path: root/agent/preset-passphrase.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2014-03-07 08:46:44 +0000
committerWerner Koch <[email protected]>2014-03-07 13:18:43 +0000
commitcb0dcc340836a64e2d33b27f1be7bc888c084f12 (patch)
treeb3a7c437ee7b2fe2f529697b458d3ea05d873bb0 /agent/preset-passphrase.c
parentgl: Avoid warning about shadowing an arg. (diff)
downloadgnupg-cb0dcc340836a64e2d33b27f1be7bc888c084f12.tar.gz
gnupg-cb0dcc340836a64e2d33b27f1be7bc888c084f12.zip
w32: Include winsock2.h to silence warnings.
Diffstat (limited to 'agent/preset-passphrase.c')
-rw-r--r--agent/preset-passphrase.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/agent/preset-passphrase.c b/agent/preset-passphrase.c
index e0cb77ea8..ad8e50047 100644
--- a/agent/preset-passphrase.c
+++ b/agent/preset-passphrase.c
@@ -38,7 +38,10 @@
#include <fcntl.h> /* for setmode() */
#endif
#ifdef HAVE_W32_SYSTEM
-#include <windows.h> /* To initialize the sockets. fixme */
+# ifdef HAVE_WINSOCK2_H
+# include <winsock2.h>
+# endif
+# include <windows.h> /* To initialize the sockets. fixme */
#endif
#define JNLIB_NEED_LOG_LOGV