aboutsummaryrefslogtreecommitdiff
path: root/libbutl/process.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-06-18 14:09:59 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-06-18 14:09:59 +0200
commit18bed2c174362f76ddedf68bb700e8b2c817fcb5 (patch)
tree463c4a495386c9ec1869f4434367bfcfc43ea884 /libbutl/process.cxx
parent639ff12af754d024a562925a52406ace0d3c673b (diff)
Complete NetBSD compatibility
Diffstat (limited to 'libbutl/process.cxx')
-rw-r--r--libbutl/process.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/libbutl/process.cxx b/libbutl/process.cxx
index 2dc3809..0695493 100644
--- a/libbutl/process.cxx
+++ b/libbutl/process.cxx
@@ -43,7 +43,10 @@
//
# elif defined(__FreeBSD__) && __FreeBSD__ >= 8
# define LIBBUTL_POSIX_SPAWN
-# elif defined(__NetBSD__)
+//
+// On NetBSD posix_spawn() appeared in 6.0 (see the man page for details).
+//
+# elif defined(__NetBSD__) && __NetBSD__ >= 6
# define LIBBUTL_POSIX_SPAWN
//
// posix_spawn() appeared in Version 3 of the Single UNIX Specification that