svn commit: trunk/uClibc/libc/sysdeps/linux/arm
andersen at uclibc.org
andersen at uclibc.org
Thu Jan 19 02:23:05 UTC 2006
Author: andersen
Date: 2006-01-18 18:23:04 -0800 (Wed, 18 Jan 2006)
New Revision: 13409
Log:
Joseph S. Myers writes:
libc/sysdeps/linux/arm/ioperm.c on trunk fails to compile for me because
of no declaration of ioperm at the point where libc_hidden_proto(ioperm)
requires one. Including <sys/io.h> to get the declaration then shows up
that various types are inconsistent with that header; this patch fixes
things so that file compiles.
Modified:
trunk/uClibc/libc/sysdeps/linux/arm/ioperm.c
Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/arm/ioperm.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/arm/ioperm.c 2006-01-19 02:19:51 UTC (rev 13408)
+++ trunk/uClibc/libc/sysdeps/linux/arm/ioperm.c 2006-01-19 02:23:04 UTC (rev 13409)
@@ -47,6 +47,8 @@
#include <asm/page.h>
#include <sys/sysctl.h>
+#include <sys/io.h>
+
libc_hidden_proto(ioperm)
libc_hidden_proto(readlink)
@@ -232,27 +234,27 @@
void
-outl(unsigned int b, unsigned long int port)
+outl(unsigned long b, unsigned long int port)
{
*((volatile unsigned long *)(IO_ADDR (port))) = b;
}
-unsigned int
+unsigned char
inb (unsigned long int port)
{
return *((volatile unsigned char *)(IO_ADDR (port)));
}
-unsigned int
+unsigned short int
inw(unsigned long int port)
{
return *((volatile unsigned short *)(IO_ADDR (port)));
}
-unsigned int
+unsigned long int
inl(unsigned long int port)
{
return *((volatile unsigned long *)(IO_ADDR (port)));
More information about the uClibc-cvs
mailing list