summaryrefslogtreecommitdiffstats
path: root/dirmngr
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2014-03-07 09:46:44 +0100
committerWerner Koch <wk@gnupg.org>2014-03-07 14:18:43 +0100
commitcb0dcc340836a64e2d33b27f1be7bc888c084f12 (patch)
treeb3a7c437ee7b2fe2f529697b458d3ea05d873bb0 /dirmngr
parentgl: Avoid warning about shadowing an arg. (diff)
downloadgnupg2-cb0dcc340836a64e2d33b27f1be7bc888c084f12.tar.xz
gnupg2-cb0dcc340836a64e2d33b27f1be7bc888c084f12.zip
w32: Include winsock2.h to silence warnings.
Diffstat (limited to 'dirmngr')
-rw-r--r--dirmngr/ks-engine-hkp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dirmngr/ks-engine-hkp.c b/dirmngr/ks-engine-hkp.c
index 8aa891f74..0c131850a 100644
--- a/dirmngr/ks-engine-hkp.c
+++ b/dirmngr/ks-engine-hkp.c
@@ -25,6 +25,9 @@
#include <string.h>
#include <assert.h>
#ifdef HAVE_W32_SYSTEM
+# ifdef HAVE_WINSOCK2_H
+# include <winsock2.h>
+# endif
# include <windows.h>
#else /*!HAVE_W32_SYSTEM*/
# include <sys/types.h>