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 <fgou...@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