Subject: Re: sys/socket.h
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: current-users
Date: 04/07/2000 11:09:42
On Fri, Apr 07, 2000 at 09:19:18AM +0200, Manuel Bouyer wrote:
> On Thu, Apr 06, 2000 at 10:13:49PM +0100, Patrick Welche wrote:
> > I wrote a program which used to compile in January, but since I upgraded
> > to 1.4U/i386, gives me errors, which you can see for yourself by trying
> > to compile (cf netintro(4)):
> >
> > #include <sys/socket.h>
> > int main(){return 0;}
> >
> > In file included from socket.c:1:
> > /usr/include/sys/socket.h:182: syntax error before `u_char'
> > ...
> >
> > So something changed, but what?
>
> I don't know what changed but it seems you need to include sys/types.h before
> sys/socket.h now.
Ah - socket(2) mentions needing types.h.. odd that I have binary that actually
compiled on 10 Jan without it though..
Thanks,
Patrick