summaryrefslogtreecommitdiff
path: root/aio.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2015-06-17 20:09:13 +0000
committerDmitry V. Levin <ldv@altlinux.org>2015-06-17 20:09:13 +0000
commitd93c4e80b3cf1e04cef218aef32a77be8b7bcd2f (patch)
treedb4efeb1c3f480ae05cc30c252a5b757e610f2c5 /aio.c
parent0c5619538f719d398d04e5a54fe1c099dea56572 (diff)
downloadstrace-d93c4e80b3cf1e04cef218aef32a77be8b7bcd2f.tar.gz
Consistenly use #ifdef to check for AC_DEFINE'd macros
* aio.c (print_common_flags): Use #ifdef in the check for HAVE_STRUCT_IOCB_U_C_FLAGS. * defs.h: Use #ifdef in the check for HAVE_LITTLE_ENDIAN_LONG_LONG. * net.c: Use #ifdef in the check for HAVE_SENDMSG. * syscall.c (dumpio): Likewise. * printstat.h (DO_PRINTSTAT): Use #ifdef in checks for HAVE_STRUCT_STAT_ST_* macros. * util.c: Use #ifdef in checks for HAVE_SYS_XATTR_H.
Diffstat (limited to 'aio.c')
-rw-r--r--aio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/aio.c b/aio.c
index 7d8fb6504..e5905cbd5 100644
--- a/aio.c
+++ b/aio.c
@@ -98,7 +98,7 @@ tprint_lio_opcode(unsigned cmd)
static void
print_common_flags(struct iocb *iocb)
{
-#if HAVE_STRUCT_IOCB_U_C_FLAGS
+#ifdef HAVE_STRUCT_IOCB_U_C_FLAGS
if (iocb->u.c.flags & IOCB_RESFD)
tprintf(", resfd=%d", iocb->u.c.resfd);
if (iocb->u.c.flags & ~IOCB_RESFD)