diff options
Diffstat (limited to 'src/patchelf.cc')
-rw-r--r-- | src/patchelf.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/patchelf.cc b/src/patchelf.cc index 4d299e9..ddde0c1 100644 --- a/src/patchelf.cc +++ b/src/patchelf.cc @@ -40,9 +40,10 @@ unsigned char * contents = 0; static unsigned int getPageSize(){ -#if (defined HAVE_SYSCONF) - // if present, use sysconf to get kernel page size - return sysconf(_SC_PAGESIZE); +#ifdef MIPSEL + /* The lemote fuloong 2f kernel defconfig sets a page size of + 16KB. */ + return 4096 * 4; #else return 4096; #endif |