Index: third_party/hwcplus/include/cutils/properties.h |
diff --git a/third_party/hwcplus/include/cutils/properties.h b/third_party/hwcplus/include/cutils/properties.h |
index 2c70165b054cf7267339891a8e31bbc6c59591ba..66a9c5b8b1ca87f23e558d132ae8818d441765b3 100644 |
--- a/third_party/hwcplus/include/cutils/properties.h |
+++ b/third_party/hwcplus/include/cutils/properties.h |
@@ -19,7 +19,16 @@ |
#include <sys/cdefs.h> |
#include <stddef.h> |
+#ifdef ANDROID |
#include <sys/system_properties.h> |
+#else |
+#ifndef PROP_NAME_MAX |
+#define PROP_NAME_MAX 32 |
+#endif |
+#ifndef PROP_VALUE_MAX |
+#define PROP_VALUE_MAX 92 |
+#endif |
+#endif |
#ifdef __cplusplus |
extern "C" { |