]> granicus.if.org Git - strace/commit
Fix build on systems where libc relies on <linux/signal.h>
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 18 Jun 2018 22:59:38 +0000 (22:59 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 18 Jun 2018 22:59:38 +0000 (22:59 +0000)
commit15003d43d08e630a891447849deb236e3a0d4509
treed8700bbb1a9a4521a64eb2ede5cd0414ee235e9b
parenta2192171197d54845ab6af7b5555c1945fba4969
Fix build on systems where libc relies on <linux/signal.h>

Commit v4.23~10 has broken the build with Android's libc because it
relies on the UAPI headers (such as <linux/signal.h>) to define various
types, rather than copying them into the libc headers (such as <signal.h>)
like most other Linux C libraries.

* linux/linux/signal.h: Rename to linux/signal.h.in.
* Makefile.am (strace_SOURCES): Remove linux/linux/signal.h.
(EXTRA_DIST): Add linux/signal.h.in.
(DISTCLEANFILES): Add linux/linux/signal.h.
* configure.ac (AC_CACHE_CHECK): Check whether <linux/signal.h>
can be used along with <signal.h>, install linux/linux/signal.h
workaround if they cannot be used together.

Reported-by: Elliott Hughes <enh@google.com>
Closes: https://github.com/strace/strace/issues/72
Makefile.am
configure.ac
linux/signal.h.in [moved from linux/linux/signal.h with 100% similarity]