]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix compilation on Solaris
authorEric Bollengier <eric@baculasystems.com>
Thu, 14 Nov 2019 08:49:52 +0000 (09:49 +0100)
committerRadosław Korzeniewski <radekk@inteos.pl>
Sat, 14 Dec 2019 15:02:17 +0000 (16:02 +0100)
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

index 54a83434e35fd7097556105794f35b24319e161c..917ebaf0fd80565c96bd3e42dc6284b6ebd4e788 100644 (file)
@@ -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