remove depended on android/dlext.h.
authorjiseob.jang <jiseob.jang@samsung.com>
Thu, 1 Feb 2018 05:26:09 +0000 (14:26 +0900)
committerjiseob.jang <jiseob.jang@samsung.com>
Tue, 20 Mar 2018 08:42:50 +0000 (17:42 +0900)
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
experiments/android_nn/nn/depend/libhidl/transport/ServiceManagement.cpp
experiments/android_nn/nn/depend/libvndksupport/linker.c

index 72ac53a..692d778 100644 (file)
@@ -16,7 +16,7 @@
 
 #define LOG_TAG "ServiceManagement"
 
-#include <android/dlext.h>
+//#include <android/dlext.h>
 #include <condition_variable>
 #include <dlfcn.h>
 #include <dirent.h>
index d06cafc..474a8a2 100644 (file)
  */
 #include "linker.h"
 
-#include <android/dlext.h>
+//#include <android/dlext.h>
 #include <dlfcn.h>
 
 #define LOG_TAG "vndksupport"
 #include <log/log.h>
-
+/*
 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) {