Messages in this thread |  | | From | "Petr Vandrovec" <> | Date | Thu, 29 Nov 2001 19:02:55 MET-1 | Subject | Re: 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/
|  |