Gerald Pfeifer : nsiproxy: Include sys/socket.h.

Alexandre Julliard julliard at winehq.org
Fri Jul 23 18:08:01 CDT 2021


Module: wine
Branch: master
Commit: 49a1f9cf282ed38c7b1e4d584e06cb06c0c01f9c
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=49a1f9cf282ed38c7b1e4d584e06cb06c0c01f9c

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Thu Jul 22 12:21:43 2021 +0200

nsiproxy: Include sys/socket.h.

This addresses

  invalid use of undefined type 'struct sock addr'

and AF_INET being unknown when building on FreeBSD 11.x.

Signed-off-by: Gerald Pfeifer <gerald at pfeifer.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/nsiproxy.sys/ip.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/nsiproxy.sys/ip.c b/dlls/nsiproxy.sys/ip.c
index ab1b6294bea..93fdefa24cc 100644
--- a/dlls/nsiproxy.sys/ip.c
+++ b/dlls/nsiproxy.sys/ip.c
@@ -21,6 +21,10 @@
 #include "config.h"
 #include <stdarg.h>
 
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+
 #ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
 #endif




More information about the wine-cvs mailing list