Can't build Wine 1.1.10,1 port on up to date current.

Tijl Coosemans tijl at ulyssis.org
Fri Dec 26 12:07:26 PST 2008


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.
-------------- next part --------------
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;
-------------- next part --------------
--- 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)


More information about the freebsd-ports mailing list