Date: Wed, 26 Sep 2001 11:25:42 +1200 From: Jonathan Chen <jonathan.chen@itouch.co.nz> To: **Restricted Data** <restricted_data@hotmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: socket.h Message-ID: <20010926112542.A35028@jonc.itouch> In-Reply-To: <LAW2-F55OjmfCHJr1Wt000079bd@hotmail.com>; from restricted_data@hotmail.com on Tue, Sep 25, 2001 at 11:22:50PM %2B0000 References: <LAW2-F55OjmfCHJr1Wt000079bd@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Sep 25, 2001 at 11:22:50PM +0000, **Restricted Data** wrote:
> (4.4-20010827-RC2 FreeBSD)
>
> Everytime i try to compile any program that needs to call socket.h i get
> tons of error msgs about socket.h even programs i know work don't is my
> socket.h corrupt or is it me. Thanks to any help you may give.
>
> error msgs:
> In file included from router.c:2: (#include <sys/socket.h>)
> /usr/include/sys/socket.h:52: syntax error before `sa_family_t'
> /usr/include/sys/socket.h:52: warning: data definition has no type or
> storage class
[...]
If you look at the man page for socket(2), you'll see:
SYNOPSIS
#include <sys/types.h>
#include <sys/socket.h>
My guess is that you forgot the sys/types.h include.
--
Jonathan Chen <jonathan.chen@itouch.co.nz>
----------------------------------------------------------------------
"Opportunity does not knock,
it presents itself when you beat down the door" - W.E. Channing
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010926112542.A35028>
