diff options
author | Dan Albert <danalbert@google.com> | 2016-09-14 17:10:26 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2016-09-14 17:16:33 -0700 |
commit | a39f5d8b95297c1c3af3989946c55d126dd42e98 (patch) | |
tree | 6e13bca2c6a8a8a35e08cd9366085597598e826b /libc/include/unistd.h | |
parent | db79694bdaa0c7a04af3865f16b8435dc33f770f (diff) | |
download | bionic-a39f5d8b95297c1c3af3989946c55d126dd42e98.tar.gz |
Make getpagesize inline static.
Needed to avoid multiple definition errors.
Test: make checkbuild tests
Bug: None
Change-Id: Ife83e89f5232e98d363e2b2edd7a353ed61c4836
Diffstat (limited to 'libc/include/unistd.h')
-rw-r--r-- | libc/include/unistd.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |