From: Roland McGrath Date: Wed, 20 Oct 2004 02:17:41 +0000 (+0000) Subject: 2004-10-19 Roland McGrath X-Git-Tag: v4.5.18~473 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6e52d23cc6a6084802422652e28e9bf4434a7406;p=strace 2004-10-19 Roland McGrath * configure.ac: Check for sys/epoll.h. * desc.c: Protect #include with [HAVE_SYS_EPOLL_H]. (epollctls, epollevents): Protect each entry with #ifdef on its macro. --- diff --git a/configure.ac b/configure.ac index ffbab74b..91000376 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ dnl Process this file with autoconf to create configure. Use autoreconf. AC_PREREQ(2.57) -AC_INIT([strace],[4.5.7]) +AC_INIT([strace],[4.5.8]) AC_CONFIG_SRCDIR([strace.c]) AM_CONFIG_HEADER([config.h]) AM_INIT_AUTOMAKE([foreign check-news dist-bzip2]) @@ -193,7 +193,7 @@ 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], [], []) +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], [], []) AC_CHECK_HEADERS([linux/icmp.h linux/in6.h linux/netlink.h linux/if_packet.h], [], [], [#include ]) AC_CHECK_HEADERS([asm/sigcontext.h], [], [], [#include ]) diff --git a/desc.c b/desc.c index 403c8ece..eaff3e04 100644 --- a/desc.c +++ b/desc.c @@ -645,7 +645,7 @@ struct tcb *tcp; else { #ifdef HAVE_SYS_EPOLL_H struct epoll_event ev; - else if (umove(tcp, tcp->u_arg[3], &ev) == 0) + if (umove(tcp, tcp->u_arg[3], &ev) == 0) print_epoll_event(&ev); else #endif