From: Eric Bollengier Date: Thu, 14 Nov 2019 08:49:52 +0000 (+0100) Subject: Fix compilation on Solaris X-Git-Tag: Release-9.6.0~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2134d2de29569c63aeef50537a0b3ec17a72daee;p=thirdparty%2Fbacula.git Fix compilation on Solaris bsys.c: In function ‘void gdb_stack_trace()’: bsys.c:1059:25: error: ‘__NR_gettid’ was not declared in this scope int systag = syscall(__NR_gettid); --- diff --git a/bacula/src/lib/bsys.c b/bacula/src/lib/bsys.c index 54a83434e..917ebaf0f 100644 --- a/bacula/src/lib/bsys.c +++ b/bacula/src/lib/bsys.c @@ -964,7 +964,7 @@ char *escape_filename(const char *file_path) return escaped_path; } -#if HAVE_BACKTRACE && HAVE_GCC +#if HAVE_BACKTRACE && HAVE_GCC && HAVE_LINUX_OS /* if some names are not resolved you can try using : addr2line, like this * $ addr2line -e bin/bacula-sd -a 0x43cd11 * OR