summaryrefslogtreecommitdiff
path: root/system.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2009-06-01 09:59:11 +0000
committerDmitry V. Levin <ldv@altlinux.org>2009-06-01 09:59:11 +0000
commitf48df6ce298672621718d3921d3f357fc68c4433 (patch)
tree4243f5e2536398011cad342627f377aa220766fd /system.c
parentd80ed6c5c6c521325319de76514a5b610f801cf3 (diff)
downloadstrace-f48df6ce298672621718d3921d3f357fc68c4433.tar.gz
strace-f48df6ce298672621718d3921d3f357fc68c4433.tar.bz2
strace-f48df6ce298672621718d3921d3f357fc68c4433.tar.xz
Clean up header checks
* configure.ac: Reformat AC_CHECK_HEADERS to keep it sorted and easily updated, and reduce merging errors in the future. * system.c: Convert all non-standard #ifdef checks for specific headers to regular #ifdef HAVE_*_H checks. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Diffstat (limited to 'system.c')
-rw-r--r--system.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/system.c b/system.c
index f21dca7..63a64b8 100644
--- a/system.c
+++ b/system.c
@@ -66,11 +66,11 @@
#include <sys/syscall.h>
-#ifdef SYS_capget
+#ifdef HAVE_LINUX_CAPABILITY_H
#include <linux/capability.h>
#endif
-#ifdef SYS_cacheflush
+#ifdef HAVE_ASM_CACHECTL_H
#include <asm/cachectl.h>
#endif
@@ -78,7 +78,7 @@
#include <linux/utsname.h>
#endif
-#ifdef MIPS
+#ifdef HAVE_ASM_SYSMIPS_H
#include <asm/sysmips.h>
#endif