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:
parent
7515c23a41
commit
236d177550
|
@ -227,6 +227,8 @@ xorg_backtrace_frame(uintptr_t pc, int signo, void *arg)
|
||||||
#endif /* HAVE_WALKCONTEXT */
|
#endif /* HAVE_WALKCONTEXT */
|
||||||
|
|
||||||
#ifdef HAVE_PSTACK
|
#ifdef HAVE_PSTACK
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
static int
|
static int
|
||||||
xorg_backtrace_pstack(void)
|
xorg_backtrace_pstack(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue