summaryrefslogtreecommitdiffstats
path: root/src/xspawn.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-01-02 18:33:11 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-01-02 19:33:11 -0500
commitb12670c79356fa9eeca52bafb1bfadf4cd86a1d7 (patch)
treef3657118675f277bdd03871180b2edf0c090ba13 /src/xspawn.c
parent3b2c1067c56f234580145244530237071a1af46d (diff)
downloadbfs-b12670c79356fa9eeca52bafb1bfadf4cd86a1d7.tar.xz
xspawn: Check for NetBSD 10 before using posix_spawn_..._fchdir()
Diffstat (limited to 'src/xspawn.c')
-rw-r--r--src/xspawn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xspawn.c b/src/xspawn.c
index 40115a1..98f1f65 100644
--- a/src/xspawn.c
+++ b/src/xspawn.c
@@ -167,7 +167,7 @@ int bfs_spawn_addfchdir(struct bfs_spawn *ctx, int fd) {
}
#ifndef BFS_HAS_POSIX_SPAWN_FCHDIR
-# define BFS_HAS_POSIX_SPAWN_FCHDIR __NetBSD__
+# define BFS_HAS_POSIX_SPAWN_FCHDIR __NetBSD_Prereq__(10, 0, 0)
#endif
#ifndef BFS_HAS_POSIX_SPAWN_FCHDIR_NP