[PATCH] nsiproxy: Include sys/param.h from udp.c.

Gerald Pfeifer gerald at FreeBSD.org
Mon Sep 6 13:08:59 CDT 2021


udp.c features specific code to handle versions of FreeBSD past early
12.0 snapshots. This is guarded by a check on __FreeBSD_version which
is defined in sys/param.h. Actually including that, like tcp.c already
does, activates that check and adjusted code and unbreaks the build.

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

diff --git a/dlls/nsiproxy.sys/udp.c b/dlls/nsiproxy.sys/udp.c
index 112170782f7..a0ace071753 100644
--- a/dlls/nsiproxy.sys/udp.c
+++ b/dlls/nsiproxy.sys/udp.c
@@ -22,6 +22,10 @@
 #include <stdarg.h>
 #include <stddef.h>
 
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
+
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
 #endif
-- 
2.31.1



More information about the wine-devel mailing list