diff mbox series

[5] fix asan build failure with glibc-2.26

Message ID 75f3524a-0cbd-abaa-f01d-033afbc85c6e@ubuntu.com
State New
Headers show
Series [5] fix asan build failure with glibc-2.26 | expand

Commit Message

Matthias Klose Sept. 7, 2017, 7:05 a.m. UTC
Fix asan build failure with glibc-2.26, not finding the SIGSEGV define.  Solved
by explicitly including the signal.h header.  Ok for the gcc-5 branch?

Matthias

PS: libsanitizer still needs the backport for PR 81066


	* asan/asan_linux.cc: Include <signal.h>

Comments

Richard Biener Sept. 7, 2017, 7:09 a.m. UTC | #1
On Thu, Sep 7, 2017 at 9:05 AM, Matthias Klose <doko@ubuntu.com> wrote:
> Fix asan build failure with glibc-2.26, not finding the SIGSEGV define.  Solved
> by explicitly including the signal.h header.  Ok for the gcc-5 branch?

Ok.

Richard.

> Matthias
>
> PS: libsanitizer still needs the backport for PR 81066
>
>
>         * asan/asan_linux.cc: Include <signal.h>
>
> --- a/src/libsanitizer/asan/asan_linux.cc
> +++ b/src/libsanitizer/asan/asan_linux.cc
> @@ -29,6 +29,7 @@
>  #include <dlfcn.h>
>  #include <fcntl.h>
>  #include <pthread.h>
> +#include <signal.h>
>  #include <stdio.h>
>  #include <unistd.h>
>  #include <unwind.h>
>
diff mbox series

Patch

--- a/src/libsanitizer/asan/asan_linux.cc
+++ b/src/libsanitizer/asan/asan_linux.cc
@@ -29,6 +29,7 @@ 
 #include <dlfcn.h>
 #include <fcntl.h>
 #include <pthread.h>
+#include <signal.h>
 #include <stdio.h>
 #include <unistd.h>
 #include <unwind.h>