]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Glibc versions prior to 2.5 do not define PTRACE_GETSIGINFO
authorFlorian Krohm <florian@eich-krohm.de>
Wed, 24 Sep 2014 19:13:01 +0000 (19:13 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Wed, 24 Sep 2014 19:13:01 +0000 (19:13 +0000)
(determined by Patrick J. LoPresti).
Tweak the ifdeffery.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14565

NEWS
coregrind/vgdb-invoker-ptrace.c

diff --git a/NEWS b/NEWS
index cfd5e628182e61244de0baecd991043bdd6f38a5..1079c24a12cb4ce102316f3a5d03e2f91520c37e 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -30,6 +30,7 @@ where XXXXXX is the bug number as listed below.
 339020 ppc64: memcheck/tests/ppc64/power_ISA2_05 failing in nightly build
 339156 - gdbsrv not called for fatal signal
 n-i-bz Old STABS code is still being compiled, but never used. Remove it.
+n-i-bz Fix compilation on distros with glibc < 2.5
 
 
 Release 3.10.0 (10 September 2014)
index 295c79a50610e3df32de9bb072632ae18deb6655..1d43390bad17be441d8d4779183ba7828aaceac8 100644 (file)
@@ -64,8 +64,9 @@
 
 #include <sys/procfs.h>
 
-#if defined(VGA_s390x)
-/* RHEL 5 uses glibc 2.3.4 which does not define PTRACE_GETSIGINFO */
+// glibc versions prior to 2.5 do not define PTRACE_GETSIGINFO on
+// the platforms we support.
+#if !((__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 5))
 #   ifndef PTRACE_GETSIGINFO
 #   define PTRACE_GETSIGINFO 0x4202
 #   endif