lkml.org 
[lkml]   [2001]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: My previous question about iwlib
On 29 Nov 01 at 16:49, jarmo kettunen wrote:
>
> gcc -O2 -Wall -DGLIBC_HEADERS -c iwlib.c
> In file included from iwlib.c:11:
> iwlib.h:91:8: warning: extra tokens at end of #endif directive
> iwlib.h:96:8: warning: extra tokens at end of #endif directive
> In file included from iwlib.h:42,
> from iwlib.c:11:
> /usr/include/linux/in.h:25: conflicting types for `IPPROTO_IP'
> /usr/include/netinet/in.h:32: previous declaration of `IPPROTO_IP'

iwlib.h (or any other userspace app) must not include <linux/*> and
<asm/*> files. If it needs access to them for accessing ioctl API
(or anything else), maintainer must create stripped-down copy of
these headers, and distribute them with app - which is btw only
correct way, as otherwise you cannot create userspace app which
will support more than one API version (and iw used couple
of incompatible APIs in the past...).
Best regards,
Petr Vandrovec
vandrove@vc.cvut.cz

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:13    [W:0.029 / U:0.676 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site