lkml.org 
[lkml]   [1996]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Problems with compiling struct fd_set -- storage size isn't known


On Tue, 9 Jul 1996, Brian Raymond Doherty wrote:
>
> The following test program is causing me problems under 2.0.4:
>
> #include <sys/types.h>
>
> int main() {
> struct fd_set a;
> }
>
> When I try to compile it, I get:
>
> thirteen:~# gcc -o test test.c
> test.c: In function `main':
> test.c:4: storage size of `a' isn't known
>
> This program compiles cleanly under kernel 2.0.0.
>
> Am I doing something wrong, or has something been broken?

You're doing something wrong (I think). Your program should just use

fd_set a;

without the "struct".. I'm told we shouldn't use "struct fd_set" due to
standards concerns..

Linus


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