30 lines
1.0 KiB
Diff
30 lines
1.0 KiB
Diff
--- a/core/base/properties.cpp
|
|
+++ b/core/base/properties.cpp
|
|
@@ -73,7 +73,7 @@
|
|
template uint32_t GetUintProperty(const std::string&, uint32_t, uint32_t);
|
|
template uint64_t GetUintProperty(const std::string&, uint64_t, uint64_t);
|
|
|
|
-#if !defined(__BIONIC__)
|
|
+#if !defined(__BIONIC__) || defined(__TERMUX__)
|
|
static std::map<std::string, std::string>& g_properties = *new std::map<std::string, std::string>;
|
|
static int __system_property_set(const char* key, const char* value) {
|
|
g_properties[key] = value;
|
|
@@ -83,7 +83,7 @@
|
|
|
|
std::string GetProperty(const std::string& key, const std::string& default_value) {
|
|
std::string property_value;
|
|
-#if defined(__BIONIC__)
|
|
+#if defined(__BIONIC__) && !defined(__TERMUX__)
|
|
const prop_info* pi = __system_property_find(key.c_str());
|
|
if (pi == nullptr) return default_value;
|
|
|
|
@@ -108,7 +108,7 @@
|
|
return (__system_property_set(key.c_str(), value.c_str()) == 0);
|
|
}
|
|
|
|
-#if defined(__BIONIC__)
|
|
+#if defined(__BIONIC__) && !defined(__TERMUX__)
|
|
|
|
struct WaitForPropertyData {
|
|
bool done;
|