]> granicus.if.org Git - strace/commitdiff
Assume that libc provides struct msghdr.msg_control
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 26 Jun 2016 23:56:59 +0000 (23:56 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 26 Jun 2016 23:56:59 +0000 (23:56 +0000)
* configure.ac (AC_CHECK_MEMBERS): Remove struct msghdr.msg_control.
* net.c (do_msghdr): Remove HAVE_STRUCT_MSGHDR_MSG_CONTROL check.

configure.ac
net.c

index 9afda736e87ecedcb090b8dc668ab5590e2769cf..74288d830077a7595805691a1992cc8e0d496144 100644 (file)
@@ -344,8 +344,6 @@ AC_CHECK_MEMBERS(m4_normalize([
        struct stat.st_rdev
 ]))
 
-AC_CHECK_MEMBERS([struct msghdr.msg_control],,, [#include <sys/socket.h>])
-
 AC_CHECK_MEMBERS([struct timex.tai],,, [#include <sys/timex.h>])
 
 AC_CHECK_MEMBERS([struct utsname.domainname],,, [#include <sys/utsname.h>])
diff --git a/net.c b/net.c
index 613a1df96c6bc997d4f7dd301c94312b886120aa..113632cb2a33b38d09c74a8f2059f45fc3cce2e6 100644 (file)
--- a/net.c
+++ b/net.c
@@ -413,17 +413,12 @@ do_msghdr(struct tcb *tcp, struct msghdr *msg, unsigned long data_size)
        tprint_iov_upto(tcp, (unsigned long)msg->msg_iovlen,
                        (unsigned long)msg->msg_iov, IOV_DECODE_STR, data_size);
 
-#ifdef HAVE_STRUCT_MSGHDR_MSG_CONTROL
        tprintf(", msg_controllen=%lu", (unsigned long)msg->msg_controllen);
        if (msg->msg_controllen)
                printcmsghdr(tcp, (unsigned long) msg->msg_control,
                             msg->msg_controllen);
        tprints(", msg_flags=");
        printflags(msg_flags, msg->msg_flags, "MSG_???");
-#else /* !HAVE_STRUCT_MSGHDR_MSG_CONTROL */
-       tprintf("msg_accrights=%#lx, msg_accrightslen=%u",
-               (unsigned long) msg->msg_accrights, msg->msg_accrightslen);
-#endif /* !HAVE_STRUCT_MSGHDR_MSG_CONTROL */
        tprints("}");
 }