Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1fa795b3 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

libbase uses liblog symbols via dlsym when it is built for APEX am: 5280b5c0 am: c02e86ed

Change-Id: Idb95dc045ebed71248cc9a3503c513ff158120b8
parents d06c7ef9 c02e86ed
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -16,14 +16,20 @@

#include "liblog_symbols.h"

#if defined(__ANDROID__) && !defined(NO_LIBLOG_DLSYM)
#if defined(__ANDROID__)
#if !defined(NO_LIBLOG_DLSYM) || defined(__ANDROID_APEX__)
#define USE_DLSYM
#endif
#endif

#ifdef USE_DLSYM
#include <dlfcn.h>
#endif

namespace android {
namespace base {

#if defined(__ANDROID__) && !defined(NO_LIBLOG_DLSYM)
#ifdef USE_DLSYM

const std::optional<LibLogFunctions>& GetLibLogFunctions() {
  static std::optional<LibLogFunctions> liblog_functions = []() -> std::optional<LibLogFunctions> {