aboutsummaryrefslogtreecommitdiff
path: root/include/compat.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-11-23 16:07:38 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-11-23 16:07:38 +0100
commitf6afde3c5dcece3b4980cebcde09a9ecca9e20d8 (patch)
tree48294a30843b08709d6c2dbdc1734a14e176c865 /include/compat.h
parentdd4d7e713290d9cecbebc6933e41d027bac63c8f (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.h2
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>