First take on changes to allow building with MSC for W32CE.
[gpgme.git] / src / w32-glib-io.c
index ff21c3d8d20d63eac14c4b8abf4aaca44ba0472b..6b7cd15062b1adb844a29edfcce935a6e84fee90 100644 (file)
 #include <assert.h>
 #include <errno.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 <glib.h>
 #include <windows.h>