Adjust dlls/iphlpapi/ipstats.c to FreeBSD 8

Francois Gouget fgouget at free.fr
Fri Jan 9 01:20:33 CST 2009


On Thu, 1 Jan 2009, Gerald Pfeifer wrote:
[...]
> ChangeLog:
> Only use RTF_LLINFO if #defined, fixing FreeBSD 8 after the arp-v2 
> rewrite.
[...]
>  #if defined(HAVE_SYS_SYSCTL_H) && defined(NET_RT_DUMP)
> -  int mib[] = {CTL_NET, PF_ROUTE, 0, AF_INET, NET_RT_FLAGS, RTF_LLINFO};
> +  int mib[] = {CTL_NET, PF_ROUTE, 0, AF_INET, NET_RT_FLAGS,
> +#ifdef RTF_LLINFO
> +               RTF_LLINFO
> +#else
> +               0
> +#endif
> +               };

Is there a way to do it so the same binary can run and work on FreeBSD 
7.x and 8.0?


-- 
Francois Gouget <fgouget at free.fr>              http://fgouget.free.fr/
 "Only wimps use tape backup: _real_ men just upload their important stuff on
       ftp, and let the rest of the world mirror it ;)" -- Linus Torvalds



More information about the wine-devel mailing list