summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Globals.h13
-rw-r--r--src/OSSupport/File.cpp2
2 files changed, 2 insertions, 13 deletions
diff --git a/src/Globals.h b/src/Globals.h
index c0686c5b5..7af475816 100644
--- a/src/Globals.h
+++ b/src/Globals.h
@@ -148,20 +148,7 @@ template class SizeChecker<UInt8, 1>;
#undef GetFreeSpace
#endif // GetFreeSpace
#else
- #include <sys/types.h>
- #include <sys/time.h>
- #include <sys/socket.h>
- #include <netinet/in.h>
#include <arpa/inet.h>
- #include <netdb.h>
- #include <time.h>
- #include <dirent.h>
- #include <errno.h>
- #include <iostream>
- #include <cstring>
- #include <pthread.h>
- #include <semaphore.h>
- #include <fcntl.h>
#include <unistd.h>
#endif
diff --git a/src/OSSupport/File.cpp b/src/OSSupport/File.cpp
index fc3ddbdeb..03d621a38 100644
--- a/src/OSSupport/File.cpp
+++ b/src/OSSupport/File.cpp
@@ -9,6 +9,8 @@
#include <fstream>
#ifdef _WIN32
#include <share.h> // for _SH_DENYWRITE
+#else
+ #include <dirent.h>
#endif // _WIN32