diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-01-02 18:33:11 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-01-02 19:33:11 -0500 |
commit | b12670c79356fa9eeca52bafb1bfadf4cd86a1d7 (patch) | |
tree | f3657118675f277bdd03871180b2edf0c090ba13 | |
parent | 3b2c1067c56f234580145244530237071a1af46d (diff) | |
download | bfs-b12670c79356fa9eeca52bafb1bfadf4cd86a1d7.tar.xz |
xspawn: Check for NetBSD 10 before using posix_spawn_..._fchdir()
-rw-r--r-- | src/xspawn.c | 2 |
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 |