summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorEnrico Weigelt, metux IT consult <info@metux.net>2024-03-18 16:06:43 +0100
committerMarge Bot <emma+marge@anholt.net>2024-03-18 23:02:45 +0000
commitccfa7e9f2e0c05a2a2e3d4577c821192960ceac9 (patch)
treea34e010c282639f864aaf30753b72674b6b9794c /os
parentf6a367102cbb4ab8b8d56b1943a06cc07462cd81 (diff)
Fix missing include of <sys/wait.h>
Instead of relying on indirect includes, it's much cleaner if everybody includes directly what he needs. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1419>
Diffstat (limited to 'os')
-rw-r--r--os/backtrace.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/os/backtrace.c b/os/backtrace.c
index 8025bffae..e4cb91b1c 100644
--- a/os/backtrace.c
+++ b/os/backtrace.c
@@ -27,9 +27,14 @@
#include "os.h"
#include "misc.h"
+
#include <errno.h>
#include <string.h>
+#ifndef WIN32
+#include <sys/wait.h>
+#endif
+
#ifdef HAVE_LIBUNWIND
#define UNW_LOCAL_ONLY