Re: Kernel includes and libc6

Erik Andersen (andersen@inconnect.com)
Tue, 9 Sep 1997 12:20:34 -0600 (MDT)


Read the Glibc FAQ, and then remove the #include <linux\*>
lines from your program.


-Erik

--
Erik B. Andersen   Web:    http://www.inconnect.com/~andersen/ 
                   email:  andersee@debian.org
--This message was written using 73% post-consumer electrons--

On Mon, 8 Sep 1997, Pablo Bianucci wrote:

> Hi All! > > I've been compilng some programs with kernel 2.1.54 and libc6 2.0.4, and > got some warnings like this: > > /usr/include/linux/wait.h:4: warning: `WNOHANG' redefined > /usr/include/waitflags.h:25: warning: this is the location of the previous > definition > /usr/include/linux/wait.h:5: warning: `WUNTRACED' redefined > /usr/include/waitflags.h:26: warning: this is the location of the previous > definition > > Excerpt from /usr/include/waitflags.h: > > === > /* Bits in the third argument to `waitpid'. */ > #define WNOHANG 1 /* Don't block waiting. */ > #define WUNTRACED 2 /* Report status of stopped children. */ > === > > Excerpt from /usr/include/linux/wait.h: > > === > #define WNOHANG 0x00000001 > #define WUNTRACED 0x00000002 > === > > ==x== > Another warning: > > In file included from /usr/include/netinet/in.h:141, > from serial.c:14: > /usr/include/sockaddrcom.h:25: warning: redefinition of `sa_family_t' > /usr/include/linux/socket.h:9: warning: `sa_family_t' previously declared > here > > Excerpt from /usr/include/sockaddrcom.h: > > === > typedef unsigned short int sa_family_t; > === > > Excerpt from /usr/include/linux/socket.h: > > === > typedef unsigned short sa_family_t; > === > > Why? > > Bye & Good Luck! > > Pablo B. > > > >