Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
compat: dirfd is standard
Baptiste Daroussin committed 3 months ago
commit 529a33b18edc61d6fc4a912a39286a37bdd166a9
parent 2e556ef
2 files changed +2 -2
modified auto.def
@@ -178,7 +178,7 @@ cc-check-includes stdint.h inttypes.h

# check for pkg itself
cc-check-functions arc4random arc4random_stir chflagsat \
-
	closefrom dirfd eaccess fopencookie funopen getprogname strnstr \
+
	closefrom eaccess fopencookie funopen getprogname strnstr \
	strtofflags strtonum utimensat __res_setservers \
	faccessat fstatat openat readlinkat fflagstostr reallocarray strchrnul \
	copy_file_range
modified compat/closefrom.c
@@ -69,7 +69,7 @@ void
closefrom(int lowfd)
{
    long fd, maxfd;
-
#if defined(HAVE_DIRFD) && defined(HAVE_PROC_PID)
+
#if defined(HAVE_PROC_PID)
    char fdpath[PATH_MAX], *endp;
    struct dirent *dent;
    DIR *dirp;