On Friday 26 December 2008 20:06:37 Sam Fourman Jr. wrote: >> It's because of this: >> http://lists.freebsd.org/pipermail/freebsd-current/2008-December/001264.html > > does someone have a patch handy that we can use to get around this > issue?
Attached. I also needed the mkdir patch with wine 1.1.11, so I included that as well. Without it, wine creates directories with wrong permissions. This has already been fixed upstream though, so you should remove it when version 1.1.12 arrives.
diff --git dlls/iphlpapi/ipstats.c dlls/iphlpapi/ipstats.c index 3fc91eb..99e78a0 100644 --- dlls/iphlpapi/ipstats.c +++ dlls/iphlpapi/ipstats.c @@ -1250,7 +1250,11 @@ DWORD getRouteTable(PMIB_IPFORWARDTABLE *ppIpForwardTable, HANDLE heap, DWORD getNumArpEntries(void) { #if defined(HAVE_SYS_SYSCTL_H) && defined(NET_RT_DUMP) +#ifdef RTF_LLINFO int mib[] = {CTL_NET, PF_ROUTE, 0, AF_INET, NET_RT_FLAGS, RTF_LLINFO}; +#else + int mib[] = {CTL_NET, PF_ROUTE, 0, AF_INET, NET_RT_FLAGS, 0}; +#endif #define MIB_LEN (sizeof(mib) / sizeof(mib[0])) DWORD arpEntries = 0; size_t needed; @@ -1308,7 +1312,11 @@ DWORD getArpTable(PMIB_IPNETTABLE *ppIpNetTable, HANDLE heap, DWORD flags) #if defined(HAVE_SYS_SYSCTL_H) && defined(NET_RT_DUMP) if (table) { +#ifdef RTF_LLINFO int mib[] = {CTL_NET, PF_ROUTE, 0, AF_INET, NET_RT_FLAGS, RTF_LLINFO}; +#else + int mib[] = {CTL_NET, PF_ROUTE, 0, AF_INET, NET_RT_FLAGS, 0}; +#endif #define MIB_LEN (sizeof(mib) / sizeof(mib[0])) size_t needed; char *buf, *lim, *next;
--- include/wine/port.h.orig 2008-12-26 13:38:31.000000000 +0100 +++ include/wine/port.h 2008-12-26 13:38:55.000000000 +0100 @@ -115,7 +115,6 @@ #endif #ifdef HAVE__MKDIR -#define mkdir(path,mode) _mkdir(path) #endif #if !defined(HAVE_FTRUNCATE) && defined(HAVE_CHSIZE)
_______________________________________________ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"