summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/ia64/sys
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-15 16:53:01 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:24 +0200
commit02c9f0d6e8fc2dfef2a1caa39fac83b566884247 (patch)
tree33c29b98d9e6c22376eb1f812416ec72d88619bd /libc/sysdeps/linux/ia64/sys
parentbcfda18ae026b31d86eecc55cbc72dcaf41dc23a (diff)
remove libc_hidden_proto(ioperm) from all headers except arm
While there, guard everywhere ioperm and iopl prototypes with __UCLIBC_LINUX_SPECIFIC__ Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/ia64/sys')
-rw-r--r--libc/sysdeps/linux/ia64/sys/io.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/ia64/sys/io.h b/libc/sysdeps/linux/ia64/sys/io.h
index cdd609190..6d2a4ab86 100644
--- a/libc/sysdeps/linux/ia64/sys/io.h
+++ b/libc/sysdeps/linux/ia64/sys/io.h
@@ -24,6 +24,7 @@
__BEGIN_DECLS
+#if defined __UCLIBC_LINUX_SPECIFIC__
/* If TURN_ON is TRUE, request for permission to do direct i/o on the
port numbers in the range [FROM,FROM+NUM-1]. Otherwise, turn I/O
permission off for that range. This call requires root privileges.
@@ -33,12 +34,12 @@ __BEGIN_DECLS
E.g., Linux/Alpha for Alpha PCs supports this. */
extern int ioperm (unsigned long int __from, unsigned long int __num,
int __turn_on);
-libc_hidden_proto(ioperm)
/* Set the I/O privilege level to LEVEL. If LEVEL>3, permission to
access any I/O port is granted. This call requires root
privileges. */
extern int iopl (int __level);
+#endif /* __UCLIBC_LINUX_SPECIFIC__ */
extern unsigned int _inb (unsigned long int __port);
extern unsigned int _inb (unsigned long int __port);