diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-11-23 16:07:38 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-11-23 16:07:38 +0100 |
commit | f6afde3c5dcece3b4980cebcde09a9ecca9e20d8 (patch) | |
tree | 48294a30843b08709d6c2dbdc1734a14e176c865 /include/compat.h | |
parent | dd4d7e713290d9cecbebc6933e41d027bac63c8f (diff) |
Move some unix header inclusions to compat.h
In most cases, including unistd.h and fcntl.h was a left over anyway.
In the cases where it was not, move it to compat.h.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/compat.h')
-rw-r--r-- | include/compat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/compat.h b/include/compat.h index 53c2e93..1a8f3a4 100644 --- a/include/compat.h +++ b/include/compat.h @@ -108,6 +108,8 @@ int fchmodat(int dirfd, const char *path, int mode, int flags); #else #include <sys/types.h> #include <sys/stat.h> +#include <unistd.h> +#include <fcntl.h> #ifdef __linux__ #include <sys/sysmacros.h> |