diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2019-06-17 08:36:27 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2019-06-17 08:36:27 +0000 |
commit | 234ec471745291ff99705203deb89e0f86bcb5d6 (patch) | |
tree | f60c514d9b374340114b9a1e61a4e3a7a149de64 /devel/android-tools-fastboot | |
parent | multimedia/openh264: update to 2.0.0 (diff) |
Switch DragonFly to pthread_getthreadid_np in my ports
https://github.com/DragonFlyBSD/DragonFlyBSD/commit/c0f25c26521a
Notes
Notes:
svn path=/head/; revision=504401
Diffstat (limited to 'devel/android-tools-fastboot')
-rw-r--r-- | devel/android-tools-fastboot/files/patch-base_logging.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/devel/android-tools-fastboot/files/patch-base_logging.cpp b/devel/android-tools-fastboot/files/patch-base_logging.cpp index 634f03f3ad0b..5077161ff926 100644 --- a/devel/android-tools-fastboot/files/patch-base_logging.cpp +++ b/devel/android-tools-fastboot/files/patch-base_logging.cpp @@ -18,13 +18,11 @@ #include <iostream> #include <limits> #include <sstream> -@@ -71,6 +72,14 @@ +@@ -71,6 +72,12 @@ #include <unistd.h> #elif defined(_WIN32) #include <windows.h> -+#elif defined(__DragonFly__) -+#include <unistd.h> -+#elif defined(__FreeBSD__) ++#elif defined(__DragonFly__) || defined(__FreeBSD__) +#include <pthread_np.h> +#elif defined(__NetBSD__) +#include <lwp.h> @@ -33,13 +31,11 @@ #endif #if defined(_WIN32) -@@ -88,6 +97,14 @@ static thread_id GetThreadId() { +@@ -88,6 +97,12 @@ static thread_id GetThreadId() { return syscall(__NR_gettid); #elif defined(_WIN32) return GetCurrentThreadId(); -+#elif defined(__DragonFly__) -+ return lwp_gettid(); -+#elif defined(__FreeBSD__) ++#elif defined(__DragonFly__) || defined(__FreeBSD__) + return pthread_getthreadid_np(); +#elif defined(__NetBSD__) + return _lwp_self(); |