summaryrefslogtreecommitdiff
path: root/emulators/wine/patches/patch-bb
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/wine/patches/patch-bb')
-rw-r--r--emulators/wine/patches/patch-bb22
1 files changed, 12 insertions, 10 deletions
diff --git a/emulators/wine/patches/patch-bb b/emulators/wine/patches/patch-bb
index c56ab5bfeaa..d927ed7ae86 100644
--- a/emulators/wine/patches/patch-bb
+++ b/emulators/wine/patches/patch-bb
@@ -1,17 +1,19 @@
-$NetBSD: patch-bb,v 1.1 2008/06/26 19:46:56 jmcneill Exp $
+$NetBSD: patch-bb,v 1.2 2008/06/27 11:47:24 jmcneill Exp $
---- loader/kthread.c.orig 2008-06-26 15:40:21.000000000 -0400
-+++ loader/kthread.c 2008-06-26 15:40:35.000000000 -0400
-@@ -115,10 +115,12 @@
+--- loader/kthread.c.orig 2008-06-17 10:07:31.000000000 -0400
++++ loader/kthread.c 2008-06-27 07:32:03.000000000 -0400
+@@ -115,6 +115,14 @@
pthread_descr descr = __pthread_thread_self();
return &descr->thread_errno;
}
-+#ifndef __NetBSD__
++
++#ifdef __errno
++#undef __errno
++#endif
++#ifdef ___errno
++#undef ___errno
++#endif
++
int *__error(void) { return __errno_location(); } /* FreeBSD */
int *__errno(void) { return __errno_location(); } /* NetBSD */
int *___errno(void) { return __errno_location(); } /* Solaris */
- int *__thr_errno(void) { return __errno_location(); } /* UnixWare */
-+#endif
-
- /***********************************************************************
- * __h_errno_location