diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-12-21 12:37:38 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-12-21 12:37:38 +0000 |
commit | 611b1b713b2ae19dc633c3fdaab2accbaa9f32a4 (patch) | |
tree | 0fc85e746d60705e3446a5318887d2ecc0c6d575 /src | |
parent | 027040540dd36cae5b416c6706fe5ac348f9be24 (diff) | |
download | s6-rc-611b1b713b2ae19dc633c3fdaab2accbaa9f32a4.tar.xz |
Use dir_fd instead of dirfd, because Solaris
Diffstat (limited to 'src')
-rw-r--r-- | src/s6-rc/s6-rc-compile.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/s6-rc/s6-rc-compile.c b/src/s6-rc/s6-rc-compile.c index 11d87fe..a017fd1 100644 --- a/src/s6-rc/s6-rc-compile.c +++ b/src/s6-rc/s6-rc-compile.c @@ -1,6 +1,5 @@ /* ISC license. */ -#include <skalibs/nonposix.h> /* NetBSD doesn't know dirfd() is POSIX */ #include <string.h> #include <stdint.h> #include <sys/stat.h> @@ -499,7 +498,7 @@ static inline void add_sources (before_t *be, char const *srcdir, stralloc *sa) int fdsrc ; DIR *dir = opendir(srcdir) ; if (!dir) strerr_diefu2sys(111, "opendir ", srcdir) ; - fdsrc = dirfd(dir) ; + fdsrc = dir_fd(dir) ; for (;;) { struct stat st ; |