From 516d95e6785b0477bb08c8ba41ebabd6f9741a3c Mon Sep 17 00:00:00 2001 From: "jiseob.jang" Date: Thu, 1 Feb 2018 14:26:09 +0900 Subject: [PATCH] remove depended on android/dlext.h. Signed-off-by: jiseob.jang --- .../android_nn/nn/depend/libhidl/transport/ServiceManagement.cpp | 2 +- experiments/android_nn/nn/depend/libvndksupport/linker.c | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/experiments/android_nn/nn/depend/libhidl/transport/ServiceManagement.cpp b/experiments/android_nn/nn/depend/libhidl/transport/ServiceManagement.cpp index 72ac53a..692d778 100644 --- a/experiments/android_nn/nn/depend/libhidl/transport/ServiceManagement.cpp +++ b/experiments/android_nn/nn/depend/libhidl/transport/ServiceManagement.cpp @@ -16,7 +16,7 @@ #define LOG_TAG "ServiceManagement" -#include +//#include #include #include #include diff --git a/experiments/android_nn/nn/depend/libvndksupport/linker.c b/experiments/android_nn/nn/depend/libvndksupport/linker.c index d06cafc..474a8a2 100644 --- a/experiments/android_nn/nn/depend/libvndksupport/linker.c +++ b/experiments/android_nn/nn/depend/libvndksupport/linker.c @@ -15,12 +15,12 @@ */ #include "linker.h" -#include +//#include #include #define LOG_TAG "vndksupport" #include - +/* extern struct android_namespace_t* android_get_exported_namespace(const char*); static const char* namespace_name = NULL; @@ -41,8 +41,10 @@ static struct android_namespace_t* get_vendor_namespace() { } return vendor_namespace; } +*/ void* android_load_sphal_library(const char* name, int flag) { +/* struct android_namespace_t* vendor_namespace = get_vendor_namespace(); if (vendor_namespace != NULL) { const android_dlextinfo dlextinfo = { @@ -57,6 +59,8 @@ void* android_load_sphal_library(const char* name, int flag) { ALOGD("Loading %s from current namespace instead of sphal namespace.", name); return dlopen(name, flag); } +*/ + return dlopen(name, flag); } int android_unload_sphal_library(void* handle) { -- 2.7.4