From 84421d8475ca8262a914b3875ed110fc6187ee74 Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Mon, 18 Jul 2016 16:19:25 -0700 Subject: [PATCH] Add ioprio values directly. The ioprio.h header is not a uapi header, so remove it's use and add the two values that this code needs to use. Bug: 30072483 Change-Id: I5c8b6f40bd60a43f50ac26792f96d2fa3f6db020 --- libcutils/iosched_policy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libcutils/iosched_policy.c b/libcutils/iosched_policy.c index 71bc94b25..13c2cebbc 100644 --- a/libcutils/iosched_policy.c +++ b/libcutils/iosched_policy.c @@ -24,7 +24,8 @@ #include #if defined(__ANDROID__) -#include +#define IOPRIO_WHO_PROCESS (1) +#define IOPRIO_CLASS_SHIFT (13) #include #define __android_unused #else