diff options
Diffstat (limited to 'cpp/RenderScript.cpp')
| -rw-r--r-- | cpp/RenderScript.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/RenderScript.cpp b/cpp/RenderScript.cpp index 3a75ffe0..04f1e88e 100644 --- a/cpp/RenderScript.cpp +++ b/cpp/RenderScript.cpp @@ -23,11 +23,15 @@ #include "rsCppInternal.h" #include <dlfcn.h> +#include <unistd.h> -#if !defined(RS_SERVER) && defined(HAVE_ANDROID_OS) +#if !defined(RS_SERVER) && !defined(RS_COMPATIBILITY_LIB) && defined(HAVE_ANDROID_OS) #include <cutils/properties.h> +#else +#include "rsCompatibilityLib.h" #endif + using namespace android; using namespace RSC; @@ -473,7 +477,6 @@ bool RS::init(std::string &name, int targetApi, uint32_t flags) { } mCacheDir = name; - mCacheDir += "/com.android.renderscript.cache/"; mDev = RS::dispatch->DeviceCreate(); if (mDev == 0) { |
