From 236d1775509404b0dcf44873422dd8652b1e9588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claes=20N=C3=A4st=C3=A9n?= Date: Fri, 14 May 2021 13:57:10 +0000 Subject: [PATCH] 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. --- os/backtrace.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/os/backtrace.c b/os/backtrace.c index fd3d6ab0d..99d776950 100644 --- a/os/backtrace.c +++ b/os/backtrace.c @@ -227,6 +227,8 @@ xorg_backtrace_frame(uintptr_t pc, int signo, void *arg) #endif /* HAVE_WALKCONTEXT */ #ifdef HAVE_PSTACK +#include + static int xorg_backtrace_pstack(void) {