aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2018-09-27 16:34:49 -0700
committerRob Landley <rob@landley.net>2018-10-04 12:53:59 -0500
commitb33d37d6f735f008c15a4acf86a66e0e9a6dbef6 (patch)
treec3eb677ce34041e910d94f03ac91b59d2518aa88 /toys
parente29880dee2be718e5c1d1e175708f922962dbed2 (diff)
downloadtoybox-b33d37d6f735f008c15a4acf86a66e0e9a6dbef6.tar.gz
Make it possible to build the AOSP .config against glibc.
It's possible that we should just pull setprop back out of toybox to live with getprop in system/core/, but this lets us build the same toybox configuration for device and host in AOSP. (Longer term we'd like to use host bionic, but if we enable this we can start experimenting on the tobyox side before the bionic side is finished.)
Diffstat (limited to 'toys')
-rw-r--r--toys/android/log.c1
-rw-r--r--toys/android/setprop.c2
-rw-r--r--toys/android/start.c2
3 files changed, 0 insertions, 5 deletions
diff --git a/toys/android/log.c b/toys/android/log.c
index cc800e78..09e36d7b 100644
--- a/toys/android/log.c
+++ b/toys/android/log.c
@@ -20,7 +20,6 @@ config LOG
#define FOR_log
#include "toys.h"
-#include <android/log.h>
GLOBALS(
char *tag;
diff --git a/toys/android/setprop.c b/toys/android/setprop.c
index 14c24d9f..cda34a5d 100644
--- a/toys/android/setprop.c
+++ b/toys/android/setprop.c
@@ -17,8 +17,6 @@ config SETPROP
#define FOR_setprop
#include "toys.h"
-#include <sys/system_properties.h>
-
void setprop_main(void)
{
char *name = toys.optargs[0], *value = toys.optargs[1];
diff --git a/toys/android/start.c b/toys/android/start.c
index f6b3c379..5df847a9 100644
--- a/toys/android/start.c
+++ b/toys/android/start.c
@@ -27,8 +27,6 @@ config STOP
#define FOR_start
#include "toys.h"
-#include <sys/system_properties.h>
-
static void start_stop(int start)
{
char *property = start ? "ctl.start" : "ctl.stop";