MOO-cows Mailing List Archive

[Prev][Next][Index][Thread]

Compiling with FreeBSD?



Folks,
Anyone got the MOO server to compile with FreeBSD.  I've spent a while 
getting it to work and at this point I'm stuck with the following error 
message:
gcc -g -Wall -Wwrite-strings -O -DMOO -c net_mplex.c
In file included from my-sys-time.h:24,
                 from net_mp_selct.c:22,
                 from net_mplex.c:21:
/usr/include/sys/select.h:45: parse error before `pid_t'
/usr/include/sys/select.h:45: warning: no semicolon at end of struct or union
/usr/include/sys/select.h:47: parse error before `}'
*** Error code 1

Here's the code from select.h
*      @(#)select.h    8.2 (Berkeley) 1/4/94
 * select.h,v 1.2 1994/08/02 07:53:31 davidg Exp
 */

#ifndef _SYS_SELECT_H_
#define _SYS_SELECT_H_

/*
 * Used to maintain information about processes that wish to be
 * notified when I/O becomes possible.
 */
struct selinfo {
        pid_t   si_pid;         /* process to be notified */
        short   si_flags;       /* see below */
};
#define SI_COLL 0x0001          /* collision occurred */

#ifdef KERNEL
struct proc;

void    selrecord __P((struct proc *selector, struct selinfo *));
void    selwakeup __P((struct selinfo *));
#endif

#endif /* !_SYS_SELECT_H_ */

----
Any help would be appreciated.  Thanks.

-ken




Home | Subject Index | Thread Index