aboutsummaryrefslogtreecommitdiff
path: root/toys/android/setprop.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/android/setprop.c')
-rw-r--r--toys/android/setprop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/android/setprop.c b/toys/android/setprop.c
index f29a868a..2af314aa 100644
--- a/toys/android/setprop.c
+++ b/toys/android/setprop.c
@@ -17,7 +17,7 @@ config SETPROP
#define FOR_setprop
#include "toys.h"
-#include <cutils/properties.h>
+#include <sys/system_properties.h>
void setprop_main(void)
{
@@ -44,6 +44,6 @@ void setprop_main(void)
if (!isalnum(*p) && !strchr("@_.-", *p))
error_exit("invalid character '%c' in name '%s'", *p, name);
- if (property_set(name, value))
+ if (__system_property_set(name, value))
error_msg("failed to set property '%s' to '%s'", name, value);
}