From a8e1c1c63f88ad4cbe7f164fcfcfa34fb60ae73b Mon Sep 17 00:00:00 2001 From: sherpya Date: Wed, 20 May 2015 04:30:11 +0200 Subject: [PATCH] added missing defines for android --- Process.c | 5 +++++ Process.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/Process.c b/Process.c index 267d1733..1962c5d0 100644 --- a/Process.c +++ b/Process.c @@ -27,6 +27,11 @@ in the source distribution for its full text. #include #include +#ifdef __ANDROID__ +#define SYS_ioprio_get __NR_ioprio_get +#define SYS_ioprio_set __NR_ioprio_set +#endif + // On Linux, this works only with glibc 2.1+. On earlier versions // the behavior is similar to have a hardcoded page size. #ifndef PAGE_SIZE diff --git a/Process.h b/Process.h index e1b7a8fa..ab7acb28 100644 --- a/Process.h +++ b/Process.h @@ -9,6 +9,11 @@ Released under the GNU GPL, see the COPYING file in the source distribution for its full text. */ +#ifdef __ANDROID__ +#define SYS_ioprio_get __NR_ioprio_get +#define SYS_ioprio_set __NR_ioprio_set +#endif + // On Linux, this works only with glibc 2.1+. On earlier versions // the behavior is similar to have a hardcoded page size. #ifndef PAGE_SIZE