summaryrefslogtreecommitdiffstats
path: root/src/opt.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-09-17 12:25:29 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-09-17 14:34:20 -0400
commiteed258cba1cae84fc11312bf6d6dbfbee7448cb3 (patch)
tree823c29cfdf6ade4e6ef6264d0d99b0997687838d /src/opt.c
parentb1a999892b9e13181ddd9a7d895f3d1c65fbb449 (diff)
downloadbfs-eed258cba1cae84fc11312bf6d6dbfbee7448cb3.tar.xz
opt: #include "xspawn.h" before #ifdef POSIX_SPAWN_SETRLIMIT
Fixes: 65a7814 ("opt: Don't raise RLIMIT_NOFILE if it would prevent using posix_spawn()")
Diffstat (limited to 'src/opt.c')
-rw-r--r--src/opt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opt.c b/src/opt.c
index 6b51d85..9d4323d 100644
--- a/src/opt.c
+++ b/src/opt.c
@@ -40,6 +40,7 @@
#include "expr.h"
#include "list.h"
#include "pwcache.h"
+#include "xspawn.h"
#include <errno.h>
#include <limits.h>