[PATCH] iphlpapi: Include <netinet/in.h> in ifenum.c.
Gerald Pfeifer
gerald at pfeifer.com
Sun Feb 21 07:05:46 CST 2021
commit 2d3b1c1288c8a0df5cdecd3929dbb69da0fee7c4
Author: Alex Henrie <alexhenrie24 at gmail.com>
Date: Tue Feb 16 22:56:29 2021 -0700
iphlpapi: Use RtlIpv4AddressToStringA instead of inet_ntoa.
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
broke FreeBSD by removing
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
from iphlpapi/ifenum.c. Alas that is required there to define
INADDR_ANY which is still used in that file
Gerald
Signed-off-by: Gerald Pfeifer <gerald at pfeifer.com>
---
dlls/iphlpapi/ifenum.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dlls/iphlpapi/ifenum.c b/dlls/iphlpapi/ifenum.c
index 288e04db7b8..2e99ebe03fd 100644
--- a/dlls/iphlpapi/ifenum.c
+++ b/dlls/iphlpapi/ifenum.c
@@ -67,6 +67,10 @@
#include <net/if_types.h>
#endif
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+
#ifdef HAVE_IFADDRS_H
#include <ifaddrs.h>
#endif
--
2.30.0
More information about the wine-devel
mailing list