From: Roy Marples Date: Mon, 5 Jan 2015 14:12:23 +0000 (+0000) Subject: OpenBSD fixed their posix_spawn(3) implementation in 5.7 X-Git-Tag: v6.7.0~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2179b718aa5e69c378355d2cfbb51ee26aabfaa1;p=thirdparty%2Fdhcpcd.git OpenBSD fixed their posix_spawn(3) implementation in 5.7 --- diff --git a/configure b/configure index f61d3ba4..bac56d7a 100755 --- a/configure +++ b/configure @@ -738,16 +738,21 @@ if [ -z "$POSIX_SPAWN" ]; then cat <_posix_spawn.c #include #include + +#ifdef __OpenBSD__ +# include +# if OpenBSD<201505 +# error posix_spawn was fixed in OpenBSD-5.7 +# endif +#endif + int main(void) { posix_spawn(NULL, NULL, NULL, NULL, NULL, NULL); return 0; } EOF if $XCC _posix_spawn.c -o _posix_spawn 2>&3; then - case "$OS" in - openbsd*) printf "broken OpenBSD ... "; POSIX_SPAWN=no;; - *) POSIX_SPAWN=yes;; - esac + POSIX_SPAWN=yes else POSIX_SPAWN=no fi