os: include unistd.h when HAVE_PSTACK is defined

On Solaris when HAVE_PSTACK is defined unistd.h needs to be included to
avoid implicit declarations of pipe, read, execle etc.
This commit is contained in:
Claes Nästén 2021-05-14 13:57:10 +00:00 committed by Aaron Plattner
parent 7515c23a41
commit 236d177550
1 changed files with 2 additions and 0 deletions

View File

@ -227,6 +227,8 @@ xorg_backtrace_frame(uintptr_t pc, int signo, void *arg)
#endif /* HAVE_WALKCONTEXT */
#ifdef HAVE_PSTACK
#include <unistd.h>
static int
xorg_backtrace_pstack(void)
{