Vanilla Netrek Server Development Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[VANILLA-L:601] Re: FW: problems compiling Server2.7pl6.tar
>gcc -O -c update.c
>update.c: In function `BecomeDaemon':
>update.c:434: too many arguments to function `setpgrp'
>*** Error code 1
from config.h.in:
#ifdef HAVE_UNISTD_H
#if defined (hpux) || defined(__osf__)
#define SETPGRP() setsid()
#else
#if defined (linux) || defined(sgi) || defined(Solaris)
#define SETPGRP() setpgrp()
#else
#define SETPGRP() setpgrp (0, 0)
#endif
#endif
#else
define SETPGRP() setpgrp (0, getpid())
#endif
(indents added by me)
by default, previously in config.h.in, HAVE_UNISTD_H is undefined. I'm
assuming it's ok to go into config.h.in and taylor things to your needs,
so what you need to is change the #undef to a #define for HAVE_UNISTD_H.
Which would make sense, since if it's not defined, it automatically jumps to
#define SETPGRP() setpgrp (0, getpid())
which is not what you want. You want the setpgrp().
If you change config.h.in, you will need to rerun the configure script.
Bob Campbell