summaryrefslogtreecommitdiffstats
path: root/common/w32-reg.c
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 /common/w32-reg.c
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 'common/w32-reg.c')
-rw-r--r--common/w32-reg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/w32-reg.c b/common/w32-reg.c
index 428705ce9..250717791 100644
--- a/common/w32-reg.c
+++ b/common/w32-reg.c
@@ -36,6 +36,9 @@
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
+#ifdef HAVE_WINSOCK2_H
+# include <winsock2.h>
+#endif
#include <windows.h>
#include "libjnlib-config.h"