On Tue, Sep 07, 2010 at 11:04:32PM +0000, Dimitri wrote: > OK. Thanks Stuart. > > I'm trying to port libtissue to run on OpenBSD and I solved (I think) > libscp problems, but now I have some problems compiling listener.c. I > read man of socket, types etc. but I can not understand the problem > ...
> $ gcc -c listener.c > In file included from listener.c:10: > /usr/include/sys/socket.h:152: error: syntax error before "u_int8_t" > The source code of listener.c is (my changed is commented in spanish): > > /* > * This file is part of piggy > * Copyright (c) 2005 Gianni Tedesco <gia...@scaramanga.co.uk> > * Released under the terms of the GNU GPL version 2 > * > * This is the listener object it manages listening TCP sockets, for > * each new connection that comes in we spawn off a new proxy object. > */ > > #include <sys/socket.h> > #include <sys/un.h> As indicated in socket(2), you need to #include <sys/types.h> before socket.h. Joachim -- TFMotD: Module::Build (3p) - Build and install Perl modules http://www.joachimschipper.nl/