summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-11-21 11:15:58 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-11-21 11:15:58 +0000
commitbbf84bb108beca2e014e93e76371b8fdb3336bf3 (patch)
tree8c90c1e8d477d7d4f4a115c346d0549a97fcc11e /libc/sysdeps/linux/common
parentae49d141f41d0f641de63105e11a475e990cd4d0 (diff)
fix ioperm build problems caused by libc_hidden_proto removal
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r--libc/sysdeps/linux/common/ioperm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/ioperm.c b/libc/sysdeps/linux/common/ioperm.c
index 65414fccd..64fc6470f 100644
--- a/libc/sysdeps/linux/common/ioperm.c
+++ b/libc/sysdeps/linux/common/ioperm.c
@@ -8,8 +8,13 @@
*/
#include <sys/syscall.h>
+
#if defined __ARCH_USE_MMU__ && defined __NR_ioperm
+
/* psm: can't #include <sys/io.h>, some archs miss it */
extern int ioperm(unsigned long __from, unsigned long __num, int __turn_on) __THROW;
+libc_hidden_proto(ioperm)
+
_syscall3(int, ioperm, unsigned long, from, unsigned long, num, int, turn_on)
+
#endif