]> granicus.if.org Git - strace/commit
tests/kcmp: use <linux/kcmp.h> if it is available
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sat, 16 Sep 2017 00:56:14 +0000 (02:56 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 17 Sep 2017 12:04:11 +0000 (12:04 +0000)
commit9acc2417753227c6d4dddb8a28a89124a5569a14
treefd9c96ae04d95fa74fa8a3f84a6b2e84a566e4b1
parentd5c03ad80a8fe618d65adfc73af865e30e689c27
tests/kcmp: use <linux/kcmp.h> if it is available

I see it as a good idea to stick to system headers whenever possible
in order to also check for possible discrepancies between strace's
internal definitions and definitions present in the system headers.

* configure.ac (AC_CHECK_HEADERS): Add linux/kcmp.h.
* tests/kcmp.h [HAVE_LINUX_KCMP_H]: Include <linux/kcmp.h>,
do not define KCMP_FILE and KCMP_SYSVSEM.
configure.ac
tests/kcmp.c