From 2134d2de29569c63aeef50537a0b3ec17a72daee Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 14 Nov 2019 09:49:52 +0100 Subject: [PATCH] Fix compilation on Solaris MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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); --- bacula/src/lib/bsys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3