Subject: problems with arpa/inet.h
To: None <current-users@NetBSD.ORG>
From: SamMaEl <firstname.lastname@example.org>
Date: 06/08/1998 01:53:48
I'm trying to compile a program that uses the arpa/inet.h header
file, and for some reason gcc is complaining about it.
Here's an extract from the source file:
void accept_new_connect( int type )
struct sockaddr_in sock;
int size, dummy = 1;
size = sizeof( struct sockaddr_in );
And here is gcc's output:
In file included from loop.c:17:
/usr/include/arpa/inet.h:76: warning: `struct in_addr' declared inside
/usr/include/arpa/inet.h:76: warning: its scope is only this definition or
/usr/include/arpa/inet.h:76: warning: which is probably not what you want.
/usr/include/arpa/inet.h:77: warning: `struct in_addr' declared inside
/usr/include/arpa/inet.h:77: warning: parameter has incomplete type
/usr/include/arpa/inet.h:80: warning: parameter has incomplete type
/usr/include/arpa/inet.h:84: warning: parameter has incomplete type
Has anyone else noticed a problem with this, or am I just doing
something wrong? ;-)
HELO... my name is rewt... you have SIGKILLed my father... prepare to vi!