First take on changes to allow building with MSC for W32CE.
[gpgme.git] / src / posix-sema.c
index 4ec3abb..7ab08df 100644 (file)
 #include <errno.h>
 #include <signal.h>
 #include <fcntl.h>
-#include <unistd.h>
-#include <sys/time.h>
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
+#ifdef HAVE_SYS_TIME_H
+# include <sys/time.h>
+#endif
 #include <sys/types.h>
 
 #include "util.h"