aboutsummaryrefslogtreecommitdiffstats
path: root/src/ath.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-11-02 16:27:46 +0000
committerWerner Koch <[email protected]>2010-11-02 16:27:46 +0000
commit987993a38d12f6de052683711e673fa6bbbdae86 (patch)
treefd71f8e2a821a54a0f4c0b2243f5ad4c74683c97 /src/ath.c
parent2010-10-28 Marcus Brinkmann <[email protected]> (diff)
downloadgpgme-987993a38d12f6de052683711e673fa6bbbdae86.tar.gz
gpgme-987993a38d12f6de052683711e673fa6bbbdae86.zip
First take on changes to allow building with MSC for W32CE.
Fixed regression in plain W32 build.
Diffstat (limited to '')
-rw-r--r--src/ath.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/ath.c b/src/ath.c
index 803dedbb..a303ffc2 100644
--- a/src/ath.c
+++ b/src/ath.c
@@ -23,17 +23,26 @@
#endif
#include <assert.h>
-#include <unistd.h>
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
#ifdef HAVE_SYS_SELECT_H
# include <sys/select.h>
#else
-# include <sys/time.h>
+# ifdef HAVE_SYS_TIME_H
+# include <sys/time.h>
+# endif
#endif
#include <sys/types.h>
#ifndef HAVE_W32_SYSTEM
#include <sys/wait.h>
#endif
+#ifdef _MSC_VER
+ typedef long ssize_t;
+ typedef int pid_t;
+#endif
+
#include "ath.h"