[PATCH] nsiproxy: Include netinet/in.h before if_ether.h

Gerald Pfeifer gerald at pfeifer.com
Sat Jul 3 02:02:43 CDT 2021


Recent changes to introduce dlls/nsiproxy.sys broke the build on FreeBSD.

netinet/if_ether.h uses types that explicitly require netinet/in.h to 
be pulled in before, unlike Linux where such includes happen implicitly.

This simple fix restores the build and should not impact other platforms
- we already have been using this pattern elsewhere.


Huw, would it make sense for you to be listed in the MAINTAINERS file?

Gerald


Signed-off-by: Gerald Pfeifer <gerald at pfeifer.com>
---
 dlls/nsiproxy.sys/ndis.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/nsiproxy.sys/ndis.c b/dlls/nsiproxy.sys/ndis.c
index 647fd650cd3..7a0e7ec6f6c 100644
--- a/dlls/nsiproxy.sys/ndis.c
+++ b/dlls/nsiproxy.sys/ndis.c
@@ -38,6 +38,10 @@
 #include <net/if_arp.h>
 #endif
 
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+
 #ifdef HAVE_NETINET_IF_ETHER_H
 #include <netinet/if_ether.h>
 #endif
-- 
2.31.1



More information about the wine-devel mailing list