summaryrefslogtreecommitdiff
path: root/devel/android-tools-fastboot
diff options
context:
space:
mode:
Diffstat (limited to 'devel/android-tools-fastboot')
-rw-r--r--devel/android-tools-fastboot/files/patch-base_logging.cpp12
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();