summaryrefslogtreecommitdiff
path: root/emulators/wine-devel/patches/patch-bb
blob: 12bad634693c34455dc70d25cd654504a692dd78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-bb,v 1.1.1.1 2008/11/21 17:40:31 adam Exp $

--- 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;
 }
+
+#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 */