pkgsrc-wip/wine/patches/patch-bb
2008-07-18 05:56:44 +00:00

19 lines
584 B
Text

$NetBSD: patch-bb,v 1.1.1.1 2008/07/18 05:56:44 asau 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 */