From owner-freebsd-questions Tue Sep 25 16:25:50 2001 Delivered-To: freebsd-questions@freebsd.org Received: from itouch.co.nz (itouch.co.nz [203.99.66.188]) by hub.freebsd.org (Postfix) with ESMTP id 5B46937B409 for ; Tue, 25 Sep 2001 16:25:45 -0700 (PDT) Received: from jonc.itouch ([192.168.2.21]) by itouch.co.nz with esmtp (Exim 3.33 #1) id 15m1aC-000F3k-00; Wed, 26 Sep 2001 11:25:44 +1200 Received: (from jonc@localhost) by jonc.itouch (8.11.6/8.11.6) id f8PNPg035074; Wed, 26 Sep 2001 11:25:42 +1200 (NZST) (envelope-from jonc) Date: Wed, 26 Sep 2001 11:25:42 +1200 From: Jonathan Chen To: **Restricted Data** Cc: freebsd-questions@freebsd.org Subject: Re: socket.h Message-ID: <20010926112542.A35028@jonc.itouch> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from restricted_data@hotmail.com on Tue, Sep 25, 2001 at 11:22:50PM +0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 ) > /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 #include My guess is that you forgot the sys/types.h include. -- Jonathan Chen ---------------------------------------------------------------------- "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