Subject: Re: problems with arpa/inet.h
To: SamMaEl <rimsky@teleport.com>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: current-users
Date: 06/08/1998 10:02:32
On Mon, 8 Jun 1998 01:53:48 -0700 (PDT)
SamMaEl <rimsky@teleport.com> wrote:
>
> 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:
...before including <arpa/inet.h>, you need <netinet/in.h>.
> In file included from loop.c:17:
> /usr/include/arpa/inet.h:76: warning: `struct in_addr' declared inside
> parameter list
> /usr/include/arpa/inet.h:76: warning: its scope is only this definition or
> declaration,
> /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
> parameter list
> /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
Jason R. Thorpe thorpej@nas.nasa.gov
NASA Ames Research Center Home: +1 408 866 1912
NAS: M/S 258-5 Work: +1 650 604 0935
Moffett Field, CA 94035 Pager: +1 650 428 6939