pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
xsb: thread_xsb.h patched instead of .c (thanks RVP)
Module Name: pkgsrc-wip
Committed By: mayuresh <mayuresh%acm.org@localhost>
Pushed By: mayuresh
Date: Sat Aug 13 11:31:54 2022 +0530
Changeset: 2e61ea2cd3aca11ba0329cbbcd8a75972fbd2869
Modified Files:
xsb/patches/patch-.._emu_thread__xsb.c
Added Files:
xsb/patches/patch-.._emu_thread__xsb.h
Log Message:
xsb: thread_xsb.h patched instead of .c (thanks RVP)
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=2e61ea2cd3aca11ba0329cbbcd8a75972fbd2869
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
xsb/patches/patch-.._emu_thread__xsb.c | 2 --
xsb/patches/patch-.._emu_thread__xsb.h | 15 +++++++++++++++
2 files changed, 15 insertions(+), 2 deletions(-)
diffs:
diff --git a/xsb/patches/patch-.._emu_thread__xsb.c b/xsb/patches/patch-.._emu_thread__xsb.c
index 6ae05eb8bf..421147d895 100644
--- a/xsb/patches/patch-.._emu_thread__xsb.c
+++ b/xsb/patches/patch-.._emu_thread__xsb.c
@@ -1,7 +1,5 @@
$NetBSD$
-PTHREAD_MUTEX_ERRORCHECK_NP is not available on NetBSD
-
--- ../emu/thread_xsb.c.orig 2022-05-12 20:54:07.000000000 +0000
+++ ../emu/thread_xsb.c
@@ -20,6 +20,10 @@
diff --git a/xsb/patches/patch-.._emu_thread__xsb.h b/xsb/patches/patch-.._emu_thread__xsb.h
new file mode 100644
index 0000000000..ab491dcf50
--- /dev/null
+++ b/xsb/patches/patch-.._emu_thread__xsb.h
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Just like FREEBSD et al NetBSD requires *_NP #defined
+
+--- ../emu/thread_xsb.h.orig 2022-05-12 20:54:07.000000000 +0000
++++ ../emu/thread_xsb.h
+@@ -215,7 +215,7 @@ int get_waiting_for_tid( int t );
+
+ /* TLS: for Cygwin, these constants must be re-defined */
+
+-#if defined(DARWIN) || defined(FREEBSD) || defined(SOLARIS) || defined(CYGWIN)
++#if defined(DARWIN) || defined(FREEBSD) || defined(SOLARIS) || defined(CYGWIN) || defined(__NetBSD__)
+
+ #define PTHREAD_MUTEX_RECURSIVE_NP PTHREAD_MUTEX_RECURSIVE
+ #define PTHREAD_MUTEX_ERRORCHECK_NP PTHREAD_MUTEX_ERRORCHECK
Home |
Main Index |
Thread Index |
Old Index