]> granicus.if.org Git - strace/commitdiff
Clean up header checks
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 1 Jun 2009 09:59:11 +0000 (09:59 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 1 Jun 2009 09:59:11 +0000 (09:59 +0000)
* 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>
ChangeLog
configure.ac
system.c

index 21cdd0f7b041624e6ddeaffc5556776c0de9f1d9..13cf0ce5f54e4b3e40f9c7989e7eba1b9a9fb542 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-06-01  Dmitry V. Levin  <ldv@altlinux.org>
+
+       * 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>
+
 2009-04-20  Denys Vlasenko  <dvlasenk@redhat.com>
 
        * file.c (printstatsol, printstat_sparc64):
index ffbfeb4389664cc154e3e4d687ec00bddbfd296e..3b1db7c7157efcf3915ddd5b66a47559e815aac1 100644 (file)
@@ -209,7 +209,39 @@ AC_CHECK_LIB(nsl, main)
 fi
 
 AC_CHECK_FUNCS(sigaction strerror strsignal pread sys_siglist _sys_siglist getdents mctl prctl sendmsg inet_ntop if_indextoname)
-AC_CHECK_HEADERS([sys/reg.h sys/filio.h sys/acl.h sys/asynch.h sys/door.h stropts.h sys/conf.h sys/stream.h sys/tihdr.h sys/tiuser.h sys/sysconfig.h ioctls.h sys/ioctl.h sys/ptrace.h termio.h linux/ptrace.h asm/reg.h sys/uio.h sys/aio.h poll.h sys/poll.h sys/vfs.h asm/sysmips.h linux/utsname.h sys/nscsys.h mqueue.h sys/epoll.h libaio.h inttypes.h], [], [])
+AC_CHECK_HEADERS([ \
+       inttypes.h \
+       ioctls.h \
+       libaio.h \
+       mqueue.h \
+       poll.h \
+       stropts.h \
+       termio.h \
+       sys/acl.h \
+       sys/aio.h \
+       sys/asynch.h \
+       sys/conf.h \
+       sys/door.h \
+       sys/epoll.h \
+       sys/filio.h \
+       sys/ioctl.h \
+       sys/nscsys.h \
+       sys/poll.h \
+       sys/ptrace.h \
+       sys/reg.h \
+       sys/stream.h \
+       sys/sysconfig.h \
+       sys/tihdr.h \
+       sys/tiuser.h \
+       sys/uio.h \
+       sys/vfs.h \
+       asm/cachectl.h \
+       asm/reg.h \
+       asm/sysmips.h \
+       linux/capability.h \
+       linux/ptrace.h \
+       linux/utsname.h \
+], [], [])
 AC_CHECK_HEADERS([linux/icmp.h linux/in6.h linux/netlink.h linux/if_packet.h],
                  [], [], [#include <stddef.h>
 #include <linux/socket.h>])
index f21dca79f3139dfddd9f1d0a03b3d85541edb373..63a64b858035826e313e5603ccd17787f5a6fdc4 100644 (file)
--- a/system.c
+++ b/system.c
 
 #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