This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[COMMITTED] tests: Remove tgkill define from backtrace.c


tgkill is never used in the test and it might conflict with newer
glibc which might define tgkill themselves (just like gettid):
https://sourceware.org/bugzilla/show_bug.cgi?id=6399

Signed-off-by: Mark Wielaard <mark@klomp.org>
---
 tests/ChangeLog   | 4 ++++
 tests/backtrace.c | 1 -
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/ChangeLog b/tests/ChangeLog
index b76c44d..71aa178 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,3 +1,7 @@
+2019-03-04  Mark Wielaard  <mark@klomp.org>
+
+	* backtrace.c (tgkill): Remove define.
+
 2019-01-24  Mark Wielaard  <mark@klomp.org>
 
 	* Makefile.am (system_elf_libelf_test_CPPFLAGS): Guard by
diff --git a/tests/backtrace.c b/tests/backtrace.c
index 05e8ef8..ecf5583 100644
--- a/tests/backtrace.c
+++ b/tests/backtrace.c
@@ -296,7 +296,6 @@ prepare_thread (pid_t pid2 __attribute__ ((unused)),
 
 #include <asm/unistd.h>
 #include <unistd.h>
-#define tgkill(pid, tid, sig) syscall (__NR_tgkill, (pid), (tid), (sig))
 
 static void
 report_pid (Dwfl *dwfl, pid_t pid)
-- 
1.8.3.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]