summaryrefslogtreecommitdiff
path: root/libc/sysdeps/unix/sysv/linux/s390/dl-procinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/unix/sysv/linux/s390/dl-procinfo.h')
-rw-r--r--libc/sysdeps/unix/sysv/linux/s390/dl-procinfo.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libc/sysdeps/unix/sysv/linux/s390/dl-procinfo.h b/libc/sysdeps/unix/sysv/linux/s390/dl-procinfo.h
index 5ca4b76ca..331230443 100644
--- a/libc/sysdeps/unix/sysv/linux/s390/dl-procinfo.h
+++ b/libc/sysdeps/unix/sysv/linux/s390/dl-procinfo.h
@@ -24,12 +24,16 @@
#undef _dl_procinfo
static inline int
__attribute__ ((unused))
-_dl_procinfo (int word)
+_dl_procinfo (unsigned int type, unsigned long int word)
{
/* This table should match the information from arch/s390/kernel/setup.c
in the kernel sources. */
int i;
+ /* Fallback to unknown output mechanism. */
+ if (type == AT_HWCAP2)
+ return -1;
+
_dl_printf ("AT_HWCAP: ");
for (i = 0; i < _DL_HWCAP_COUNT; ++i)