summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_unix.h
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2022-06-19 14:20:05 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2022-07-18 19:09:30 +0200
commitc8d9106a0d3217c385f6afe572d904d9d77b8c8b (patch)
treec145461f0f785b4a434b8bc7bf46dd7907068400 /src/nxt_unix.h
parent26a5af8591ca79eb32ca5d510d8be06527b12fc1 (diff)
downloadunit-c8d9106a0d3217c385f6afe572d904d9d77b8c8b.tar.gz
unit-c8d9106a0d3217c385f6afe572d904d9d77b8c8b.tar.bz2
Removed code used when NXT_HAVE_POSIX_SPAWN is false.
posix_spawn(3POSIX) was introduced by POSIX.1d (IEEE Std 1003.1d-1999), and was later consolidated in POSIX.1-2001, requiring it in all POSIX-compliant systems. It's safe to assume it's always available, more than 20 years after its standardization. Link: <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/spawn.h.html>
Diffstat (limited to 'src/nxt_unix.h')
-rw-r--r--src/nxt_unix.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/nxt_unix.h b/src/nxt_unix.h
index d8eaabc3..6bc6be5e 100644
--- a/src/nxt_unix.h
+++ b/src/nxt_unix.h
@@ -156,9 +156,7 @@
#include <setjmp.h>
#include <sched.h>
#include <signal.h>
-#if (NXT_HAVE_POSIX_SPAWN)
#include <spawn.h>
-#endif
#include <stdarg.h>
#include <stddef.h> /* offsetof() */
#include <stdio.h>