summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/s6-rc/s6-rc-compile.c3
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 ;