On Sat, Dec 26, 2020 at 8:53 AM Bruno Haible <br...@clisp.org> wrote:
>
> ...
> All of these problems are fixed with these new Gnulib modules.
>

Just an FYI in case you have not hit this wall (yet?)... The exec
family, posix_spawn and friends are _not_ available on all Apple
platforms. Be sure to check availability before using them.

For example, the iPhone/iPad SDKs has them, but the WatchOS and TvOS
SDKs lack them. To further complicate matters, you have to include
<TargetConditionals.h> before you can check for the SDK.

Here's what unbound does in libunbound/libworker.c
(https://github.com/NLnetLabs/unbound/blob/master/libunbound/libworker.c)

#ifdef HAVE_TARGETCONDITIONALS_H
#include <TargetConditionals.h>
#endif

#if (defined(TARGET_OS_TV) && TARGET_OS_TV) ||
(defined(TARGET_OS_WATCH) && TARGET_OS_WATCH)
#  undef HAVE_FORK
#endif

Jeff

Reply via email to