]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Portability: Include headers to get O_RDONLY and friend
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 27 Feb 2010 23:02:29 +0000 (00:02 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 27 Feb 2010 23:02:29 +0000 (00:02 +0100)
comments.c
hash.c
manifest.c
stats.c
unify.c
util.c

index 378d0d7214ccb1f662e3e560114276f465241afb..117395447c8f213ce7bcc91f953d6671f868e168 100644 (file)
 #include "ccache.h"
 #include "comments.h"
 
-#include <unistd.h>
+#include <sys/types.h>
+#include <sys/stat.h>
 #include <sys/mman.h>
+#include <fcntl.h>
+#include <unistd.h>
 
 #define HASH(ch)                                                       \
        do {                                                            \
diff --git a/hash.c b/hash.c
index e2159d7c5a95a6a47c2c56394bf7c822189b7cc2..4862b46de8ba321c8d43ffe6f3530d808b643f60 100644 (file)
--- a/hash.c
+++ b/hash.c
@@ -21,6 +21,9 @@
 
 #include "ccache.h"
 
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
index 2c66cfa97a22cac09c9a42e34c722dc5b444f824..591711a6d45e9c39b89dc0bdf9c4ce745838de78 100644 (file)
 #include "murmurhashneutral2.h"
 #include "comments.h"
 
+#include <sys/types.h>
+#include <sys/stat.h>
 #include <assert.h>
+#include <fcntl.h>
 #include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sys/types.h>
-#include <sys/stat.h>
 #include <unistd.h>
 #include <zlib.h>
 
diff --git a/stats.c b/stats.c
index 89336c44b4fe6848623b8b2adcaa745dca294d3f..c7f4d3290219b1f235c7c8781019fad0d87fd18d 100644 (file)
--- a/stats.c
+++ b/stats.c
@@ -25,6 +25,9 @@
 
 #include "ccache.h"
 
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
diff --git a/unify.c b/unify.c
index 48d6e64c9abb5aec915e04805be50393ad012f20..b001a520b020bc1f4794d8c0da79b0bcdef9c754 100644 (file)
--- a/unify.c
+++ b/unify.c
 
 #include "ccache.h"
 
+#include <sys/types.h>
+#include <sys/stat.h>
 #include <sys/mman.h>
 #include <ctype.h>
+#include <fcntl.h>
 #include <string.h>
 #include <unistd.h>
 
diff --git a/util.c b/util.c
index 951ace18c6aba37cf984abee8e3e76e1fe1b92d4..b704dc98d6317eb560eaaa2680e7ddb73c84dd90 100644 (file)
--- a/util.c
+++ b/util.c
 
 #include "ccache.h"
 
-#include <ctype.h>
 #include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <ctype.h>
 #include <unistd.h>
 #include <stdarg.h>
 #include <dirent.h>