From cb619257ed1875fcc95c31c81e43a21c0e00fbf1 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Mon, 10 Jun 2024 18:38:43 -0700 Subject: [PATCH] recvfrom: update config.h define for in_pktinfo.ipi_addr configure.ac now explicitly checks for struct in_pktinfo.ipi_addr; update the configure name to match. Signed-off-by: H. Peter Anvin --- tftpd/recvfrom.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tftpd/recvfrom.c b/tftpd/recvfrom.c index 50b788b..320678d 100644 --- a/tftpd/recvfrom.c +++ b/tftpd/recvfrom.c @@ -26,10 +26,12 @@ #if defined(HAVE_RECVMSG) && defined(HAVE_MSGHDR_MSG_CONTROL) -#include +#ifdef HAVE_SYS_UIO_H +# include +#endif #ifdef IP_PKTINFO -# ifndef HAVE_STRUCT_IN_PKTINFO +# ifndef HAVE_STRUCT_IN_PKTINFO_IPI_ADDR # ifdef __linux__ /* Assume this version of glibc simply lacks the definition */ struct in_pktinfo {