This patch fixes the build of adb on linux. Copied from archlinux repository: https://git.archlinux.org/svntogit/community.git/tree/trunk/fix_build.patch?h=packages/android-tools diff --git a/adb/sysdeps.h b/adb/sysdeps.h index 75dcc86..867f3ec 100644 --- a/adb/sysdeps.h +++ b/adb/sysdeps.h @@ -25,6 +25,7 @@ #endif #include +#include #include #include @@ -831,7 +832,16 @@ static __inline__ int adb_is_absolute_host_path(const char* path) { static __inline__ unsigned long adb_thread_id() { - return (unsigned long)gettid(); + // TODO: this function should be merged with GetThreadId +#if defined(__BIONIC__) + return gettid(); +#elif defined(__APPLE__) + return syscall(SYS_thread_selfid); +#elif defined(__linux__) + return syscall(__NR_gettid); +#elif defined(_WIN32) + return GetCurrentThreadId(); +#endif } #endif /* !_WIN32 */ diff --git a/base/errors_unix.cpp b/base/errors_unix.cpp index 296995e..48269b6 100644 --- a/base/errors_unix.cpp +++ b/base/errors_unix.cpp @@ -17,6 +17,7 @@ #include "android-base/errors.h" #include +#include namespace android { namespace base { diff --git a/base/file.cpp b/base/file.cpp index da1adba..91a3901 100644 --- a/base/file.cpp +++ b/base/file.cpp @@ -20,6 +20,7 @@ #include #include #include +#include #include diff --git a/base/logging.cpp b/base/logging.cpp index 1741871..e97c7f1 100644 --- a/base/logging.cpp +++ b/base/logging.cpp @@ -21,6 +21,7 @@ #include "android-base/logging.h" #include +#include // For getprogname(3) or program_invocation_short_name. #if defined(__ANDROID__) || defined(__APPLE__)
AgeCommit message (Expand)Author
2022-02-15gnu: Zabbix: Update to 6.0.0....* gnu/packages/monitoring.scm (zabbix-agentd): Update to 6.0.0. [inputs]: Remove LIBICONV and PCRE. Add PCRE2. [arguments]: Adjust #:configure-flags accordingly. Marius Bakke
2022-02-13gnu: Zabbix: Update to 5.4.10....* gnu/packages/monitoring.scm (zabbix-agentd): Update to 5.4.10. [source](snippet): Simplify fping substitution. Marius Bakke
2022-02-13gnu: zabbix-agentd: Use the correct license....* gnu/packages/monitoring.scm (zabbix-agentd)[license]: Change from GPL2 to GPL2+. Marius Bakke
2022-02-13gnu: zabbix-agentd: Add release-monitoring-url....* gnu/packages/monitoring.scm (zabbix-agentd)[properties]: New field. Marius Bakke
2022-01-29gnu: zabbix: Update to 5.4.9....* gnu/packages/monitoring.scm (zabbix-agentd): Update to 5.4.9. Marius Bakke
2022-01-29gnu: zabbix-server: Use a sensible default for the "fping" executable....* gnu/packages/monitoring.scm (zabbix-agentd)[source](modules, snippet): New fields. Marius Bakke
2022-01-26gnu: zabbix-server: Remove duplicate input....* gnu/packages/monitoring.scm (zabbix-server)[inputs]: Remove CURL. Marius Bakke
2022-01-26gnu: zabbix-server: Don't install agent....* gnu/packages/monitoring.scm (zabbix-server)[arguments]: Delete "--enable-agent" from #:configure-flags. Marius Bakke
2022-01-26gnu: zabbix-server: Adjust style....* gnu/packages/monitoring.scm (zabbix-server)[arguments]: Rewrite as gexp, use #:phases matching, and remove trailing #t's. Marius Bakke
2022-01-18gnu: python-pyzabbix: Fix test failure....* gnu/packages/monitoring.scm (python-pyzabbix)[arguments]: Adjust test invokation. Marius Bakke
2021-12-18gnu: fswatch: Omit static library....* gnu/packages/monitoring.scm (fswatch)[arguments]: Add "--disable-static" to #:configure-flags. Tobias Geerinckx-Rice
2021-12-18gnu: fswatch: Update to 1.16.0....* gnu/packages/monitoring.scm (fswatch): Update to 1.16.0. Tobias Geerinckx-Rice