diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2018-06-18 22:59:38 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2018-06-18 22:59:38 +0000 |
commit | 15003d43d08e630a891447849deb236e3a0d4509 (patch) | |
tree | d8700bbb1a9a4521a64eb2ede5cd0414ee235e9b /linux/signal.h.in | |
parent | a2192171197d54845ab6af7b5555c1945fba4969 (diff) | |
download | strace-15003d43d08e630a891447849deb236e3a0d4509.tar.gz |
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
Diffstat (limited to 'linux/signal.h.in')
-rw-r--r-- | linux/signal.h.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/signal.h.in b/linux/signal.h.in new file mode 100644 index 000000000..44e7ea39e --- /dev/null +++ b/linux/signal.h.in @@ -0,0 +1,5 @@ +/* + * Workaround the infamous incompatibility between <linux/signal.h> + * and many libc headers by overriding <linux/signal.h> with <signal.h>. + */ +#include <signal.h> |