OSDN Git Service

fix ioperm build problems caused by libc_hidden_proto removal
authorDenis Vlasenko <vda.linux@googlemail.com>
Fri, 21 Nov 2008 11:15:58 +0000 (11:15 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Fri, 21 Nov 2008 11:15:58 +0000 (11:15 -0000)
libc/sysdeps/linux/alpha/sys/io.h
libc/sysdeps/linux/arm/sys/io.h
libc/sysdeps/linux/bfin/sys/io.h
libc/sysdeps/linux/common/ioperm.c
libc/sysdeps/linux/i386/sys/io.h
libc/sysdeps/linux/i386/sys/perm.h
libc/sysdeps/linux/ia64/sys/io.h
libc/sysdeps/linux/sh/sys/io.h
libc/sysdeps/linux/x86_64/sys/perm.h

index 4334c63..9cb8d25 100644 (file)
@@ -32,6 +32,7 @@ __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) __THROW;
+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
index 6863990..81762be 100644 (file)
@@ -28,6 +28,7 @@ __BEGIN_DECLS
    permission off for that range.  This call requires root privileges.  */
 extern int ioperm (unsigned long int __from, unsigned long int __num,
                   int __turn_on) __THROW;
+libc_hidden_proto(ioperm)
 
 /* Set the I/O privilege level to LEVEL.  If LEVEL is nonzero,
    permission to access any I/O port is granted.  This call requires
index 6863990..81762be 100644 (file)
@@ -28,6 +28,7 @@ __BEGIN_DECLS
    permission off for that range.  This call requires root privileges.  */
 extern int ioperm (unsigned long int __from, unsigned long int __num,
                   int __turn_on) __THROW;
+libc_hidden_proto(ioperm)
 
 /* Set the I/O privilege level to LEVEL.  If LEVEL is nonzero,
    permission to access any I/O port is granted.  This call requires
index 65414fc..64fc647 100644 (file)
@@ -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
index 87b99a9..00205e4 100644 (file)
@@ -33,6 +33,7 @@ __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) __THROW;
+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
index e389e66..db67d36 100644 (file)
@@ -26,6 +26,7 @@ __BEGIN_DECLS
 /* Set port input/output permissions.  */
 extern int ioperm (unsigned long int __from, unsigned long int __num,
                   int __turn_on) __THROW;
+libc_hidden_proto(ioperm)
 
 
 /* Change I/O privilege level.  */
index 14736ff..cdd6091 100644 (file)
@@ -33,6 +33,7 @@ __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
index 6fdc44f..f833c4e 100644 (file)
@@ -28,6 +28,7 @@ __BEGIN_DECLS
    permission off for that range.  This call requires root privileges.  */
 extern int ioperm (unsigned long int __from, unsigned long int __num,
                   int __turn_on) __THROW;
+libc_hidden_proto(ioperm)
 
 /* Set the I/O privilege level to LEVEL.  If LEVEL is nonzero,
    permission to access any I/O port is granted.  This call requires
index 382fa92..3796455 100644 (file)
@@ -26,6 +26,7 @@ __BEGIN_DECLS
 /* Set port input/output permissions.  */
 extern int ioperm (unsigned long int __from, unsigned long int __num,
                   int __turn_on) __THROW;
+libc_hidden_proto(ioperm)
 
 
 /* Change I/O privilege level.  */