Added include protection for unistd.h and sys/time.h.

diff --git a/files/smb.c b/files/smb.c
index 16825c1..b84096d 100644
--- a/files/smb.c
+++ b/files/smb.c
@@ -71,10 +71,14 @@
 #ifdef HAVE_SYS_MMAN_H
 #include <sys/mman.h>
 #endif
-#include <sys/time.h>
+#ifdef HAVE_SYS_TIME_H
+# include <sys/time.h>
+#endif
 #include <sys/poll.h>
 #include <time.h>
-#include <unistd.h>
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
 #include <utime.h>
 #ifdef HAVE_SYS_SOCKET_H
 # include <sys/socket.h>