[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?


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>
+#include <netinet/in.h>
 #include <netinet/if_ether.h>

More information about the wine-devel mailing list