[PATCH] wbemprox: Fix the build on FreeBSD by including sys/socket.h.
Gerald Pfeifer
gerald at pfeifer.com
Sat Aug 18 11:56:18 CDT 2018
Commit 88d52edcc4d5a81965627905278d1212250ae84d
Author: Piotr Caban <piotr at codeweavers.com>
Date: Wed Aug 1 17:23:29 2018 +0200
wbemprox: Add Win32_NetworkAdapterConfiguration::IPSubnet property.
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
broke the build on FreeBSD 10.x and likely other versions:
builtin.c: In function 'get_ipsubnet':
builtin.c:2499:55: error: 'AF_INET' undeclared (first use in this function)
2499 | if (address->Address.lpSockaddr->sa_family == AF_INET)
| ^~~~~~~
This fixes it for me.
Gerald
Signed-off-by: Gerald Pfeifer <gerald at pfeifer.com>
---
dlls/wbemprox/builtin.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c
index 72c6b4e933..3b8b43e868 100644
--- a/dlls/wbemprox/builtin.c
+++ b/dlls/wbemprox/builtin.c
@@ -26,6 +26,9 @@
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
+#ifdef HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif
#ifdef HAVE_ARPA_INET_H
# include <arpa/inet.h>
#endif
--
2.17.0
More information about the wine-devel
mailing list