]> granicus.if.org Git - strace/commit
Make SIGEV_THREAD_ID decoding less glibc specific
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 11 Nov 2013 23:54:30 +0000 (23:54 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 12 Nov 2013 15:00:13 +0000 (15:00 +0000)
commitae5aa47370455123bf84e52dd8354d26c29efea8
tree8f6dd70b24bf696ba8dac5c1ec09bcb761124756
parenta0e02f5d52e4e10d6e46522c7233dc4914d4010b
Make SIGEV_THREAD_ID decoding less glibc specific

SIGEV_THREAD_ID decoding requires access to an internal member of
struct sigevent.  There seems to be no portable way to do it besides
adding a configure check.

* configure.ac (AC_CHECK_MEMBERS): Check for
struct sigevent._sigev_un._pad and struct sigevent.__pad.
* time.c (printsigevent): Use an appropriate struct sigevent member
to print thread id.

Reported by John Spencer.
configure.ac
time.c