Add check for the nice(3) system call.

It may be not implemented on some plaforms, though it's usually present.

Required to compile on Haiku as of 2008 October.
This commit is contained in:
ahoka
2008-10-26 21:51:27 +00:00
parent 8230c9d8ae
commit 776cc76ccb
4 changed files with 15 additions and 4 deletions

4
misc.c
View File

@ -6,7 +6,7 @@
#include <grp.h>
#endif
__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.86 2008/10/13 23:06:03 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.87 2008/10/26 21:51:26 ahoka Exp $");
#undef USE_CHVT
#if defined(TIOCSCTTY) && !defined(MKSH_SMALL)
@ -113,7 +113,9 @@ const struct shoption options[] = {
{ "arc4random", 0, OF_ANY },
#endif
{ "braceexpand", 0, OF_ANY }, /* non-standard */
#if HAVE_NICE
{ "bgnice", 0, OF_ANY },
#endif
{ NULL, 'c', OF_CMDLINE },
{ "emacs", 0, OF_ANY },
{ "errexit", 'e', OF_ANY },