[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: still - Linux 2.6.X compilation problems
From: |
Sven Luther |
Subject: |
Re: still - Linux 2.6.X compilation problems |
Date: |
Fri, 13 Feb 2004 15:11:23 +0100 |
User-agent: |
Mutt/1.5.5.1+cvs20040105i |
On Fri, Feb 13, 2004 at 02:13:21PM +0100, Andrzej Szelachowski wrote:
> Hi Sven,
>
> > Basically, you have to go into /usr/include/asm/ioctl.h, and change the
> > signed int to a unsigned int there. It is the one just above the ioctl's
> > if i remember well.
>
> In /usr/include/asm/ioctl.h there is NO "signed int".
> there are some "unsigned int" in the file above (io_apic.h) and
> below(ioctls.h) but no "signed int" in ioctl.h
>
> are you sure that this is the right header???
/* provoke compile error for invalid uses of size argument */
extern unsigned int __invalid_size_argument_for_IOC;
#define _IOC_TYPECHECK(t) \
((sizeof(t) == sizeof(t[1]) && \
sizeof(t) < (1 << _IOC_SIZEBITS)) ? \
sizeof(t) : __invalid_size_argument_for_IOC)
This is the correct code. You probably have :
extern int __invalid_size_argument_for_IOC;
signed is the default, so it is often omited.
Friendly,
Sven Luther