Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Dec 2008 21:07:20 +0100
From:      Tijl Coosemans <tijl@ulyssis.org>
To:        "Sam Fourman Jr." <sfourman@gmail.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Can't build Wine 1.1.10,1 port on up to date current.
Message-ID:  <200812262107.22665.tijl@ulyssis.org>
In-Reply-To: <11167f520812261106k16ac2706wa383a3be2ffa57@mail.gmail.com>
References:  <20081216071554.19716ikpfazg3l8o@econet.encontacto.net> <200812162129.50216.tijl@ulyssis.org> <11167f520812261106k16ac2706wa383a3be2ffa57@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--Boundary-00=_6lTVJploeIYD10k
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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.

--Boundary-00=_6lTVJploeIYD10k
Content-Type: text/plain; charset="iso-8859-1";
	name="patch-dlls-iphlpapi-ipstats.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="patch-dlls-iphlpapi-ipstats.c"

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;

--Boundary-00=_6lTVJploeIYD10k
Content-Type: text/plain; charset="iso-8859-1";
	name="patch-include-wine-port.h"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="patch-include-wine-port.h"

--- 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)

--Boundary-00=_6lTVJploeIYD10k--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812262107.22665.tijl>