From a39f5d8b95297c1c3af3989946c55d126dd42e98 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Wed, 14 Sep 2016 17:10:26 -0700 Subject: [PATCH] Make getpagesize inline static. Needed to avoid multiple definition errors. Test: make checkbuild tests Bug: None Change-Id: Ife83e89f5232e98d363e2b2edd7a353ed61c4836 --- libc/include/unistd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/include/unistd.h b/libc/include/unistd.h index ab8108a59..4e7d8bace 100644 --- a/libc/include/unistd.h +++ b/libc/include/unistd.h @@ -209,7 +209,7 @@ int acct(const char* __filepath); #if __ANDROID_API__ >= 21 int getpagesize(void) __INTRODUCED_IN(21); #else -__inline__ int getpagesize(void) { +static __inline__ int getpagesize(void) { return sysconf(_SC_PAGESIZE); } #endif -- 2.11.0