Glenn MacGregor wrote:

>     I have a declaration like this:
> 
>         struct sockaddr_in srvaddr;
> 
> when I compile that I get an error from gcc:
> 
>     aggregate `struct sockaddr_in servaddr' has incomplete type and
> cannot be initialized

        #include <netinet/in.h>

-- 
Glynn Clements <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to