]> granicus.if.org Git - strace/commit
improve ifdef check with decode_subcall
authorMike Frysinger <vapier@gentoo.org>
Thu, 15 Mar 2012 05:09:19 +0000 (01:09 -0400)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 15 Mar 2012 20:14:28 +0000 (20:14 +0000)
commit3362e89f66acde52605c654d904b2aebceb92297
tree3f466e4db489ee4951836020b6a30164730c2fe2
parentdde045c13f77ca477aa59e19d0b50ae4afa906b6
improve ifdef check with decode_subcall

Use the same ifdef logic around the call sites of decode_subcall()
to protect the definition of the func itself.  This fixes warnings
for targets like hppa which don't use this func.

* syscall.c (decode_subcall): Wrap in SYS_socket_subcall and
SYS_ipc_subcall define checks.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
syscall.c