From 18bed2c174362f76ddedf68bb700e8b2c817fcb5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 18 Jun 2020 14:09:59 +0200 Subject: Complete NetBSD compatibility --- libbutl/process.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libbutl/process.cxx') 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 -- cgit v1.1