diff options
author | Werner Koch <[email protected]> | 2004-12-02 07:48:09 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2004-12-02 07:48:09 +0000 |
commit | 4a73d94757f61e4aa2d1841535409622c2c473e3 (patch) | |
tree | 3848fcc2f05e79f26e776f6e4dfa133aeff8d04e /common/simple-pwquery.c | |
parent | 2004-11-30 Timo Schulz <[email protected]> (diff) | |
download | gnupg-4a73d94757f61e4aa2d1841535409622c2c473e3.tar.gz gnupg-4a73d94757f61e4aa2d1841535409622c2c473e3.zip |
First take on a W32 port
Diffstat (limited to '')
-rw-r--r-- | common/simple-pwquery.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/simple-pwquery.c b/common/simple-pwquery.c index 0bc8128e1..fab6306fa 100644 --- a/common/simple-pwquery.c +++ b/common/simple-pwquery.c @@ -31,8 +31,12 @@ #include <string.h> #include <errno.h> #include <unistd.h> +#ifdef _WIN32 +#include <winsock2.h> +#else #include <sys/socket.h> #include <sys/un.h> +#endif #ifdef HAVE_LOCALE_H #include <locale.h> #endif @@ -255,6 +259,9 @@ agent_send_all_options (int fd) static int agent_open (int *rfd) { +#ifdef _WIN32 + return SPWQ_NO_AGENT; /* FIXME */ +#else int rc; int fd; char *infostr, *p; @@ -346,6 +353,7 @@ agent_open (int *rfd) *rfd = fd; return 0; +#endif } |