]> granicus.if.org Git - strace/commit
Use the definition of struct mmsghdr if it is defined in build environment
authorMasatake YAMATO <yamato@redhat.com>
Thu, 6 Nov 2014 16:23:25 +0000 (01:23 +0900)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 11 Nov 2014 15:42:07 +0000 (15:42 +0000)
commitcaf6a438f9d97684c10da8a6453d1e0e151a9613
tree39d4ca205992e696af6bc968bb60ecd701722ffb
parentb248543be91457a6c0567a4b057ff0acc361efc2
Use the definition of struct mmsghdr if it is defined in build environment

mmsghrd structure type is defined locally in printmmsghdr function.

However, more functions will refer the definition in modifications for
supporting "-e write=set" and "-e read=set" option for sendmmsg and
recvmmsg system calls.

After this change, the system definition of struct mmsghdr will be used
if configure reports it is available, falling back to the old local
definition.

* configure.ac (AC_CHECK_TYPES): Add struct mmsghdr.
* net.c [!HAVE_STRUCT_MMSGHDR] (struct mmsghdr): Define.
(printmmsghdr): Use previously defined struct mmsghdr.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
configure.ac
net.c