Files
ports/graphics/epsonscan2/files/patch-src_CommonUtility_DbgLog.cpp
T
Daniel Tameling 345e28cb1c graphics/epsonscan2: Update 6.6.40.0 => 6.7.70.0
Old version crashes on 15.0-CURRENT amd64.

Also improve port: fix dependencies, add default option AVAHI.

PR:		284127
Approved by:	J.R. Oldroyd <fbsd@opal.com>
Tested by:	rhurlin
MFH:		2025Q1
2025-02-10 22:51:51 +03:00

22 lines
520 B
C++

--- src/CommonUtility/DbgLog.cpp.orig 2024-09-12 07:10:38 UTC
+++ src/CommonUtility/DbgLog.cpp
@@ -31,6 +31,9 @@
#ifdef __ANDROID__
#include <android/log.h>
#endif
+#if __FreeBSD__
+#include <pthread_np.h>
+#endif
#if TARGET_OS_IPHONE
#include <CoreFoundation/CoreFoundation.h>
#endif
@@ -84,6 +87,8 @@ GetCurrentThreadId(void)
{
#if TARGET_OS_IPHONE
return (DWORD)pthread_mach_thread_np(pthread_self());
+#elif __FreeBSD__
+ return pthread_getthreadid_np();
#else
return syscall(SYS_gettid);
#endif