Mail Archives: djgpp-workers/2001/08/02/06:04:04
On Thu, 2 Aug 2001, Peter J. Farley III wrote:
> I ask because a unix configure script I'm running wants to test
> whether getpgrp takes no argument, and the test program it tries to
> run uses the setpgrp() function. Needless to say, the compile fails,
> and configure takes its default value, which assumes that getpgrp()
> *does* take an argument, whereas DJGPP's getpgrp() does *not* take an
> argument.
IMHO, that configure script has a bug which should be fixed. It
simply didn't consider that setpgrp might be absent.
> Right now, I'd just like to be able to add a "working" function to
> libc so this configure script will get the correct result.
It's better to fix the script and send the patches to the package
maintainer. setpgrp isn't a Posix function, so packages shouldn't
assume it exists without checking.
- Raw text -