lkml.org 
[lkml]   [1997]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateTue, 9 Sep 1997 12:20:34 -0600 (MDT)
FromErik Andersen <>
SubjectRe: Kernel includes and libc6
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.
>
>
>
>


\
 
 \ /
  Last update: 2005-03-22 13:40    [from the cache]
©2003-2010