diff options
author | Werner Koch <wk@gnupg.org> | 2014-03-07 09:46:44 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2014-03-07 14:18:43 +0100 |
commit | cb0dcc340836a64e2d33b27f1be7bc888c084f12 (patch) | |
tree | b3a7c437ee7b2fe2f529697b458d3ea05d873bb0 /agent | |
parent | gl: Avoid warning about shadowing an arg. (diff) | |
download | gnupg2-cb0dcc340836a64e2d33b27f1be7bc888c084f12.tar.xz gnupg2-cb0dcc340836a64e2d33b27f1be7bc888c084f12.zip |
w32: Include winsock2.h to silence warnings.
Diffstat (limited to 'agent')
-rw-r--r-- | agent/preset-passphrase.c | 5 | ||||
-rw-r--r-- | agent/protect.c | 3 |
2 files changed, 7 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 diff --git a/agent/protect.c b/agent/protect.c index 749867cc1..3a0021871 100644 --- a/agent/protect.c +++ b/agent/protect.c @@ -29,6 +29,9 @@ #include <unistd.h> #include <sys/stat.h> #ifdef HAVE_W32_SYSTEM +# ifdef HAVE_WINSOCK2_H +# include <winsock2.h> +# endif # include <windows.h> #else # include <sys/times.h> |