diff options
author | Werner Koch <[email protected]> | 2005-09-13 14:17:04 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2005-09-13 14:17:04 +0000 |
commit | 0df0e97634d2a3e07b40b302ecbb098f0712a776 (patch) | |
tree | e91580f645d0b52c03ebdc20b85a765cd7b0388c /gpgme/ath.c | |
parent | 2005-09-12 Marcus Brinkmann <[email protected]> (diff) | |
download | gpgme-0df0e97634d2a3e07b40b302ecbb098f0712a776.tar.gz gpgme-0df0e97634d2a3e07b40b302ecbb098f0712a776.zip |
* ath.c: Changes to make it work under W32.
* w32-io.c (build_commandline): Quote argv[0].
Diffstat (limited to '')
-rw-r--r-- | gpgme/ath.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gpgme/ath.c b/gpgme/ath.c index 71382b3c..dda7c318 100644 --- a/gpgme/ath.c +++ b/gpgme/ath.c @@ -30,7 +30,9 @@ # include <sys/time.h> #endif #include <sys/types.h> +#ifndef HAVE_W32_SYSTEM #include <sys/wait.h> +#endif #include "ath.h" @@ -104,40 +106,64 @@ ssize_t ath_select (int nfd, fd_set *rset, fd_set *wset, fd_set *eset, struct timeval *timeout) { +#ifdef HAVE_W32_SYSTEM + return -1; /* Not supported. */ +#else return select (nfd, rset, wset, eset, timeout); +#endif } ssize_t ath_waitpid (pid_t pid, int *status, int options) { +#ifdef HAVE_W32_SYSTEM + return -1; /* Not supported. */ +#else return waitpid (pid, status, options); +#endif } int ath_accept (int s, struct sockaddr *addr, socklen_t *length_ptr) { +#ifdef HAVE_W32_SYSTEM + return -1; /* Not supported. */ +#else return accept (s, addr, length_ptr); +#endif } int ath_connect (int s, const struct sockaddr *addr, socklen_t length) { +#ifdef HAVE_W32_SYSTEM + return -1; /* Not supported. */ +#else return connect (s, addr, length); +#endif } int ath_sendmsg (int s, const struct msghdr *msg, int flags) { +#ifdef HAVE_W32_SYSTEM + return -1; /* Not supported. */ +#else return sendmsg (s, msg, flags); +#endif } int ath_recvmsg (int s, struct msghdr *msg, int flags) { +#ifdef HAVE_W32_SYSTEM + return -1; /* Not supported. */ +#else return recvmsg (s, msg, flags); +#endif } |