Make getpagesize inline static.
Needed to avoid multiple definition errors.
Test: make checkbuild tests
Bug: None
Change-Id: Ife83e89f5232e98d363e2b2edd7a353ed61c4836
diff --git a/libc/include/unistd.h b/libc/include/unistd.h
index ab8108a..4e7d8ba 100644
--- a/libc/include/unistd.h
+++ b/libc/include/unistd.h
@@ -209,7 +209,7 @@
#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