Subject: Re: #include problem
To: Jan Senolt <senolt@sps-jia.cz>
From: Herb Peyerl <hpeyerl@beer.org>
List: port-sparc
Date: 12/29/2001 07:25:58
"Jan Senolt" <senolt@sps-jia.cz>  wrote:
 > I have problem with include any headers files (e.g. =
 > /usr/include/sys/socket.h) to my C program:
 > When I try compile this "program":
 > 
 > #include <sys/socket.h>
 > void main(){
 > }
 > 
 > I've got those errors:
 > 
 > In file included from test.c:1:
 > /usr/include/sys/socket.h:186: syntax error before `u_char'
 > /usr/include/sys/socket.h:214: syntax error before `u_char'


You have to include <sys/types.h>

'grep' is your friend.