Added include protection for unistd.h and sys/time.h.
diff --git a/controls/desktop.c b/controls/desktop.c
index f3df7b0..b26d828 100644
--- a/controls/desktop.c
+++ b/controls/desktop.c
@@ -18,9 +18,13 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include "config.h"
+
#include <stdio.h>
#include <string.h>
-#include <unistd.h>
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
#include "windef.h"
#include "wingdi.h"
diff --git a/controls/icontitle.c b/controls/icontitle.c
index e24bb3f..68b946b 100644
--- a/controls/icontitle.c
+++ b/controls/icontitle.c
@@ -18,9 +18,13 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include "config.h"
+
#include <stdio.h>
#include <string.h>
-#include <unistd.h>
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
#include "windef.h"
#include "winbase.h"