xserver: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu May 27 21:39:52 UTC 2021


 os/backtrace.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 236d1775509404b0dcf44873422dd8652b1e9588
Author: Claes Nästén <pekdon at gmail.com>
Date:   Fri May 14 13:57:10 2021 +0000

    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.

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 <unistd.h>
+
 static int
 xorg_backtrace_pstack(void)
 {


More information about the xorg-commit mailing list