Huw Davies : nsiproxy: Add an #ifdef guard for SIN_ROUTER.

Alexandre Julliard julliard at winehq.org
Fri Aug 13 14:44:13 CDT 2021


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Fri Aug 13 08:35:48 2021 +0100

nsiproxy: Add an #ifdef guard for SIN_ROUTER.

It's not defined in FreeBSD.

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 c5d98fa93f2..e2e292f4b59 100644
--- a/dlls/nsiproxy.sys/ip.c
+++ b/dlls/nsiproxy.sys/ip.c
@@ -962,7 +962,11 @@ static NTSTATUS ipv4_neighbour_enumerate_all( void *key_data, DWORD key_size, vo
                 memcpy( entry.phys_addr, &sdl->sdl_data[sdl->sdl_nlen], entry.phys_addr_len );
                 if (rtm->rtm_rmx.rmx_expire == 0) entry.state = NlnsPermanent;
                 else entry.state = NlnsReachable;
+#ifdef SIN_ROUTER
                 entry.is_router = sinarp->sin_other & SIN_ROUTER;
+#else
+                entry.is_router = 0;
+#endif
                 entry.is_unreachable = 0; /* FIXME */
 
                 if (num < *count)




More information about the wine-cvs mailing list