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

Commit f0302fff 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...

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

Change-Id: I586f8ee1d2d460108be6ede1934cea06a3d0f793
parents d8c22baa 1fa795b3
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> {