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>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-03-18 16:06:43 +01:00 committed by Marge Bot
parent f6a367102c
commit ccfa7e9f2e
2 changed files with 5 additions and 2 deletions

View File

@ -314,8 +314,6 @@ struct pcvtid {
/* Generic */ /* Generic */
/**************************************************************************/ /**************************************************************************/
#include <sys/wait.h> /* May need to adjust this for other OSs */
/* For PATH_MAX */ /* For PATH_MAX */
#include "misc.h" #include "misc.h"

View File

@ -27,9 +27,14 @@
#include "os.h" #include "os.h"
#include "misc.h" #include "misc.h"
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>
#ifndef WIN32
#include <sys/wait.h>
#endif
#ifdef HAVE_LIBUNWIND #ifdef HAVE_LIBUNWIND
#define UNW_LOCAL_ONLY #define UNW_LOCAL_ONLY