summaryrefslogtreecommitdiffstats
path: root/libcutils
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2014-01-10 15:37:50 -0800
committerMark Salyzyn <salyzyn@google.com>2014-01-27 15:20:23 -0800
commit3bca60611702f21738b1d45892bcf33847c4877e (patch)
treeeab573c3123027c71a5afc972eaa7375cda68890 /libcutils
parent318bb72601c0b6895a93d95ad0dedaebf2ae3d9f (diff)
downloadsystem_core-3bca60611702f21738b1d45892bcf33847c4877e.zip
system_core-3bca60611702f21738b1d45892bcf33847c4877e.tar.gz
system_core-3bca60611702f21738b1d45892bcf33847c4877e.tar.bz2
libcutils: resolve warning in iosched_policy.c
(cherry picked from commit 407038cd937391216d93f72d4d13db3803c5b452) Change-Id: I35b0d1eeba21cc1ed9645a5acfa180ed20797c56
Diffstat (limited to 'libcutils')
-rw-r--r--libcutils/iosched_policy.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libcutils/iosched_policy.c b/libcutils/iosched_policy.c
index f350f58..5d90a01 100644
--- a/libcutils/iosched_policy.c
+++ b/libcutils/iosched_policy.c
@@ -1,7 +1,6 @@
-
-/* libs/cutils/iosched_policy.c
+/*
**
-** Copyright 2007, The Android Open Source Project
+** Copyright 2007-2014, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
@@ -27,7 +26,11 @@
#include <cutils/iosched_policy.h>
+#ifdef HAVE_ANDROID_OS
+/* #include <linux/ioprio.h> */
extern int ioprio_set(int which, int who, int ioprio);
+extern int ioprio_get(int which, int who);
+#endif
enum {
WHO_PROCESS = 1,