Re: ALIAS MOD in pl 11

From: Jeremy Elson (jelson@blaze.cs.jhu.edu)
Date: 05/16/96


> On Thu, 16 May 1996, Mud Account wrote:
> 
> > 
> > 
> > > 	structs.h:876: parse error before `socket_t'
> > > 	structs.h:876: warning: no semicolon at end of struct or union
> > > 	structs.h:905: parse error before `}'
> > > 
> > > struct descriptor_data {
> > >    socket_t     descriptor;     /* file descriptor for socket           *
> >      ^^^^^^^^
> >      replace socket_t with int
> 
> #include <sys/types.h> should fix the problem.  If not, you need to add:
> 
> typedef int socket_t;
> 
> to either /usr/include/sys/types.h or /usr/include/sys/socket.h.  It 
> should already be there, though.

No, socket_t is just something I made up, not a standard UNIX thing.  conf.h
and sysdep.h define socket_t (int if you're using a UNIX box, or SOCKET if
you're using Windows 95/NT.



This archive was generated by hypermail 2b30 : 12/18/00 PST