aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.3/libiberty
diff options
context:
space:
mode:
authorJing Yu <jingyu@google.com>2010-08-10 10:08:15 -0700
committerJing Yu <jingyu@google.com>2010-08-10 10:08:15 -0700
commita4d9421024ed3f70aede5b11f977d264eb69bf61 (patch)
tree249043f884d87192ee9cd326463758a141b80950 /gcc-4.4.3/libiberty
parentf01e65905acd1e2052e875130cb723a658765bc8 (diff)
downloadtoolchain_gcc-a4d9421024ed3f70aede5b11f977d264eb69bf61.tar.gz
toolchain_gcc-a4d9421024ed3f70aede5b11f977d264eb69bf61.tar.bz2
toolchain_gcc-a4d9421024ed3f70aede5b11f977d264eb69bf61.zip
Remove definition of getpagesize() in order to build c++ library
for Android toolchain. This is a local work around. The long term solution is to change the getpagesize() definition in bionicC. However to be compatible with current bionicC and sysroot, we have to do this local workaround inside gcc. After getpagesize() in bionicC is changed and ndk constains that change, we can revert this CL. Change-Id: I14757b967e41e45c06224c1d9ce7752bc1a7e9cb
Diffstat (limited to 'gcc-4.4.3/libiberty')
-rw-r--r--gcc-4.4.3/libiberty/getpagesize.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc-4.4.3/libiberty/getpagesize.c b/gcc-4.4.3/libiberty/getpagesize.c
index 1c3a26304..4d44f30f1 100644
--- a/gcc-4.4.3/libiberty/getpagesize.c
+++ b/gcc-4.4.3/libiberty/getpagesize.c
@@ -60,12 +60,13 @@ BUGS
# endif /* PAGESIZE */
#endif /* GNU_OUR_PAGESIZE */
+#if DEFAULT_LIBC != LIBC_BIONIC
int
getpagesize (void)
{
return (GNU_OUR_PAGESIZE);
}
-
+#endif
#else /* VMS */
#if 0 /* older distributions of gcc-vms are missing <syidef.h> */