aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2017-04-30 02:46:36 -0500
committerRob Landley <rob@landley.net>2017-04-30 02:46:36 -0500
commitbe3e318a591be62e8f670b8d78a0a2716eb78510 (patch)
treef31f810b180b2ad440959b7621b86233393d28ea /scripts
parent333b4d37e23a94392c7610d7a503b3c3ede1d21d (diff)
downloadtoybox-be3e318a591be62e8f670b8d78a0a2716eb78510.tar.gz
Android NDK doesn't have cutils/sched_policy.h so add a probed config symbol.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/genconfig.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/genconfig.sh b/scripts/genconfig.sh
index 8d5f98ca..c16974d7 100755
--- a/scripts/genconfig.sh
+++ b/scripts/genconfig.sh
@@ -84,6 +84,12 @@ EOF
#endif
EOF
+ probesymbol TOYBOX_ANDROID_SCHEDPOLICY << EOF
+ #include <cutils/sched_policy.h>
+
+ int main(int argc,char *argv[]) { get_sched_policy_name(0); }
+EOF
+
# nommu support
probesymbol TOYBOX_FORK << EOF
#include <unistd.h>