aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2026-05-09 19:04:32 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2026-05-09 19:04:32 +0000
commitf851b268c586329731b9a213e20360d2ef0f108a (patch)
tree17ec4666cb166a40dd708abd47f1153189ff495f /src
parentab1db58a33aa10d04cc556a24ad612cec6e3802c (diff)
downloadexecline-f851b268c586329731b9a213e20360d2ef0f108a.tar.gz
Prepare for 2.9.9.1. Correctly include locale.h when necessary.
Diffstat (limited to 'src')
-rw-r--r--src/execline/wait.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/execline/wait.c b/src/execline/wait.c
index 26ac5d3..6886c0c 100644
--- a/src/execline/wait.c
+++ b/src/execline/wait.c
@@ -4,9 +4,6 @@
#include <sys/wait.h>
#include <errno.h>
-#ifdef EXECLINE_PEDANTIC_POSIX
-#include <locale.h>
-#endif
#include <skalibs/types.h>
#include <skalibs/envexec.h>
@@ -18,6 +15,10 @@
#include <execline/config.h>
#include <execline/execline.h>
+#ifdef EXECLINE_PEDANTIC_POSIX
+#include <locale.h>
+#endif
+
#define USAGE "wait [ -I | -i ] [ -a | -o ] [ -r | -t timeout ] { pids... } [ prog... ]"
#define dieusage() strerr_dieusage(100, USAGE)