Portability: Include headers to get O_RDONLY and friend

This commit is contained in:
Joel Rosdahl 2010-02-28 00:02:29 +01:00
parent 19867b3bd2
commit 8ce0a8475f
6 changed files with 19 additions and 4 deletions

View File

@ -19,8 +19,11 @@
#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 { \

3
hash.c
View File

@ -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>

View File

@ -23,13 +23,14 @@
#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>

View File

@ -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>

View File

@ -32,8 +32,11 @@
#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>

4
util.c
View File

@ -19,8 +19,10 @@
#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>