Files
ports/devel/android-tools/files/patch-vendor_libbase_logging.cpp
T
Baptiste Daroussin 9cfd6164a2 devel/android-tools: update to 35.0.2
Recreate the port from scratch, and base in on the cmakified
https://github.com/nmeum/android-tools

Why recreating from scratch: android-tools has changed a lot since
latest version in the ports tree and it was easier for me to restart
the porting.

The main highlight is: create a libusb base backed for fastboot which now
uses lowlevel usb primitive on other targets.

Test by: flashing GrapheneOS (which requires this version as minimum
requirement and exercise fastboot extensively)
Working on LineageOS, Android and GrapheneOS over adb.

Other tools has not been tested.
Take maintainership

Approved by:		nc (maintainer timeout via email and phabricator)
Differential Revision:	https://reviews.freebsd.org/D56064
2026-04-13 09:22:42 +02:00

23 lines
871 B
C++

--- vendor/libbase/logging.cpp 2024-08-29 19:46:57.000000000 +0200
+++ vendor/libbase/logging.cpp 2026-03-21 13:49:23.603723000 +0100
@@ -26,7 +26,7 @@
#include <time.h>
// For getprogname(3) or program_invocation_short_name.
-#if defined(__ANDROID__) || defined(__APPLE__)
+#if defined(__ANDROID__) || defined(__APPLE__) || defined(__FreeBSD__)
#include <stdlib.h>
#elif defined(__GLIBC__)
#include <errno.h>
@@ -61,8 +61,8 @@
namespace android {
namespace base {
-// BSD-based systems like Android/macOS have getprogname(). Others need us to provide one.
-#if !defined(__APPLE__) && !defined(__BIONIC__)
+// BSD-based systems like Android/macOS/FreeBSD have getprogname(). Others need us to provide one.
+#if !defined(__APPLE__) && !defined(__BIONIC__) && !defined(__FreeBSD__)
static const char* getprogname() {
#ifdef _WIN32
static bool first = true;