On Thu, 2 Jun 2005, Matthew Burgess wrote:
> Hi guys.
>
> Quick programming question for you.
>
> $ cat test.c
> #include <scsi/sg.h>
>
> int main()
> {
> return 0;
> }
>
> $ gcc -o scsi test.c
> In file included from test.c:1:
> /usr/include/scsi/sg.h:39: error: parse error before "size_t"
>
> Is this a glibc bug? Surely if the header uses 'size_t' it should be
> including <stddef.h> itself, no?
>
> Cheers,
>
> Matt.
>
I wouldn't dream of suggesting a glibc bug, I regard myself as fairly
thick-skinned, but I know my limits ;) But, I was brought up to include
stdlib.h in any normal C program, after which you can happily add
scsi/sg.h.
But then, I never claimed to be a bona-fide C programmer, maybe other
people have different ideas.
Ken
--
das eine Mal als Trag�die, das andere Mal als Farce
--
http://linuxfromscratch.org/mailman/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page