diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2024-04-16 12:57:52 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2024-04-16 12:57:52 +0000 |
commit | 825b80eaa311b0aec4c00614f38f3eb63949d5a7 (patch) | |
tree | 624f702487d9acdd3cc85060cfe2edc388cf7096 /src/libunixonacid/stat_at.c | |
parent | bfc53cfde4fdda343647678fcd21b38a44f2de08 (diff) | |
download | skalibs-825b80eaa311b0aec4c00614f38f3eb63949d5a7.tar.xz |
Tentative support for old MacOS with no O_CLOEXEC
Also add a prototype for gol, not finished yet.
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libunixonacid/stat_at.c')
-rw-r--r-- | src/libunixonacid/stat_at.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libunixonacid/stat_at.c b/src/libunixonacid/stat_at.c index 2d04d57..e4040d5 100644 --- a/src/libunixonacid/stat_at.c +++ b/src/libunixonacid/stat_at.c @@ -9,8 +9,10 @@ #endif #include <skalibs/nonposix.h> + #include <sys/stat.h> -#include <fcntl.h> + +#include <skalibs/fcntl.h> #include <skalibs/unix-transactional.h> int stat_at (int dirfd, char const *file, struct stat *st) @@ -27,9 +29,11 @@ int lstat_at (int dirfd, char const *file, struct stat *st) /* OpenBSD plz. lstat() is POSIX. */ #include <skalibs/nonposix.h> + #include <sys/stat.h> -#include <fcntl.h> #include <errno.h> + +#include <skalibs/fcntl.h> #include <skalibs/djbunix.h> #include <skalibs/unix-transactional.h> |