m68k: getpagesize syscall number is always available

Due to the built-in tables, __NR_getpagesize is always defined.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
Florian Weimer 2020-02-09 17:02:48 +01:00
parent e76d4fb014
commit bf956afeaa

View File

@ -28,19 +28,15 @@
int
__getpagesize (void)
{
#ifdef __NR_getpagesize
int result;
#endif
if (GLRO(dl_pagesize) != 0)
return GLRO(dl_pagesize);
#ifdef __NR_getpagesize
result = INTERNAL_SYSCALL_CALL (getpagesize);
/* The only possible error is ENOSYS. */
if (!INTERNAL_SYSCALL_ERROR_P (result))
return result;
#endif
return 4096;
}