aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-02-09 17:02:48 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-03-03 12:52:47 +0100
commitbf956afeaaf2f466111e72d988e2dc41ef83be9a (patch)
treea9a60ac71c43eed1fde4e88300da16ab43684c9f
parentLinux: epoll_pwait syscall number is always available (diff)
downloadglibc-bf956afeaaf2f466111e72d988e2dc41ef83be9a.tar.gz
glibc-bf956afeaaf2f466111e72d988e2dc41ef83be9a.tar.bz2
glibc-bf956afeaaf2f466111e72d988e2dc41ef83be9a.zip
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>
-rw-r--r--sysdeps/unix/sysv/linux/m68k/getpagesize.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sysdeps/unix/sysv/linux/m68k/getpagesize.c b/sysdeps/unix/sysv/linux/m68k/getpagesize.c
index b57a03f7d3..99c83313d2 100644
--- a/sysdeps/unix/sysv/linux/m68k/getpagesize.c
+++ b/sysdeps/unix/sysv/linux/m68k/getpagesize.c
@@ -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;
}