SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
22
graphics/gmic/patches/patch-src_gmic_cpp
Normal file
22
graphics/gmic/patches/patch-src_gmic_cpp
Normal file
|
@ -0,0 +1,22 @@
|
|||
pthread_self will do in a pinch
|
||||
Index: src/gmic.cpp
|
||||
--- src/gmic.cpp.orig
|
||||
+++ src/gmic.cpp
|
||||
@@ -2473,6 +2473,8 @@ CImgList<void*> gmic::list_p_is_abort = CImgList<void*
|
||||
bool *gmic::abort_ptr(bool *const p_is_abort) {
|
||||
#if defined(__MACOSX__) || defined(__APPLE__)
|
||||
void* tid = (void*)(cimg_ulong)getpid();
|
||||
+#elif defined(__OpenBSD__)
|
||||
+ void* tid = (void*)pthread_self();
|
||||
#elif cimg_OS==1
|
||||
void* tid = (void*)(cimg_ulong)syscall(SYS_gettid);
|
||||
#elif cimg_OS==2
|
||||
@@ -2815,6 +2817,8 @@ gmic::~gmic() {
|
||||
cimg::mutex(21);
|
||||
#if defined(__MACOSX__) || defined(__APPLE__)
|
||||
void* tid = (void*)(cimg_ulong)getpid();
|
||||
+#elif defined(__OpenBSD__)
|
||||
+ void* tid = (void*)pthread_self();
|
||||
#elif cimg_OS==1
|
||||
void* tid = (void*)(cimg_ulong)syscall(SYS_gettid);
|
||||
#elif cimg_OS==2
|
Loading…
Add table
Add a link
Reference in a new issue