mirror of
https://git.freebsd.org/ports.git
synced 2025-07-08 21:09:17 -04:00
20 lines
947 B
C++
20 lines
947 B
C++
--- src/gmic.cpp.orig 2020-06-10 13:43:16 UTC
|
|
+++ src/gmic.cpp
|
|
@@ -2320,7 +2320,7 @@ double gmic::mp_setname(const unsigned int ind, const
|
|
// Manage correspondence between abort pointers and thread ids.
|
|
CImgList<void*> gmic::list_p_is_abort = CImgList<void*>();
|
|
bool *gmic::abort_ptr(bool *const p_is_abort) {
|
|
-#if defined(__MACOSX__) || defined(__APPLE__)
|
|
+#if defined(__MACOSX__) || defined(__APPLE__) || defined(__FreeBSD__)
|
|
void* tid = (void*)(cimg_ulong)getpid();
|
|
#elif cimg_OS==1
|
|
void* tid = (void*)(cimg_ulong)syscall(SYS_gettid);
|
|
@@ -2660,7 +2660,7 @@ gmic::~gmic() {
|
|
cimg::exception_mode(cimg_exception_mode);
|
|
cimg_forX(display_windows,l) delete &display_window(l);
|
|
cimg::mutex(21);
|
|
-#if defined(__MACOSX__) || defined(__APPLE__)
|
|
+#if defined(__MACOSX__) || defined(__APPLE__) || defined(__FreeBSD__)
|
|
void* tid = (void*)(cimg_ulong)getpid();
|
|
#elif cimg_OS==1
|
|
void* tid = (void*)(cimg_ulong)syscall(SYS_gettid);
|