]> git.tdb.fi Git - libs/core.git/commitdiff
Add missing headers
authorMikko Rasa <tdb@tdb.fi>
Thu, 10 May 2012 19:15:25 +0000 (22:15 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 10 May 2012 19:15:25 +0000 (22:15 +0300)
source/fs/dir.cpp
source/fs/stat.cpp
source/fs/utils.cpp
source/io/pipe.cpp
source/io/seekable.cpp
source/time/timezone.cpp

index 75ad8d5ecd39e0144eb7cd2f0be4ee83ab0604e8..afc2b6696800c2d157b5d63962572679a1d77de9 100644 (file)
@@ -4,6 +4,8 @@
 #include <sys/stat.h>
 #ifdef WIN32
 #include <shlobj.h>
+#else
+#include <unistd.h>
 #endif
 #include <msp/core/systemerror.h>
 #include <msp/strings/regex.h>
index 716a7d6a4f82707587aed2a9b452aa4bde87715c..f5e914eada807aa0ee356c736fd6a63fbecb3be0 100644 (file)
@@ -4,6 +4,7 @@
 #else
 #define _FILE_OFFSET_BITS 64
 #include <cerrno>
+#include <unistd.h>
 #include <sys/stat.h>
 #include <grp.h>
 #include <pwd.h>
index b66b82dd70c90c1ed96b6f0cd13a27087ad4ebf5..a34dd4e54ca86d6baf72a877cea30d6daa959c91 100644 (file)
@@ -1,4 +1,7 @@
 #include <cstdio>
+#ifndef WIN32
+#include <unistd.h>
+#endif
 #include <msp/core/systemerror.h>
 #include <msp/strings/utils.h>
 #include "dir.h"
index 3882bd5b79b62eb6159cdd372ddaa4ca9a5e4e18..d1bc5c4177deb590e539bbf2f96087f15b64c770 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef WIN32
 #include <fcntl.h>
 #include <errno.h>
+#include <unistd.h>
 #endif
 #include <msp/core/systemerror.h>
 #include <msp/strings/format.h>
index 12ff6aa11dc26bc9bc4ffe5af5d5e07150e62443..0c3b0b955f162e0d5d3b926cd7379b7aeab2e4f5 100644 (file)
@@ -1,5 +1,6 @@
 #ifndef WIN32
 #define _LARGEFILE64_SOURCE
+#include <unistd.h>
 #else
 #include <windows.h>
 #endif
index 873829d667111f86a3e96dbd164d89606f5183d1..a755954b43628c9f66fb407f46b527fb7a54314f 100644 (file)
@@ -2,6 +2,7 @@
 #ifdef WIN32
 #include <windows.h>
 #else
+#include <unistd.h>
 #include <fcntl.h>
 #endif
 #include <msp/strings/format.h>