summaryrefslogtreecommitdiff
path: root/src/nice.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-02-15 08:20:49 +0000
committerJim Meyering <jim@meyering.net>2005-02-15 08:20:49 +0000
commit83f00235d7655700b35dd6f7829d38ac47c7878d (patch)
tree2a96d91a389721fff79ad56b3f6381ca91b4133d /src/nice.c
parentad8ad412a5504d27fa4085bdb191f12ae1578a35 (diff)
downloadcoreutils-83f00235d7655700b35dd6f7829d38ac47c7878d.tar.xz
(NZERO) [NZERO == 0]: Undefine and define to 20,
to work around the invalid definition from Darwin 7.7.0.
Diffstat (limited to 'src/nice.c')
-rw-r--r--src/nice.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/nice.c b/src/nice.c
index 83e7fd9b4..0871343ba 100644
--- a/src/nice.c
+++ b/src/nice.c
@@ -1,5 +1,5 @@
/* nice -- run a program with modified scheduling priority
- Copyright (C) 1990-2004 Free Software Foundation, Inc.
+ Copyright (C) 1990-2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -53,6 +53,12 @@
# define NZERO 20
#endif
+/* This is required for Darwin Kernel Version 7.7.0. */
+#if NZERO == 0
+# undef NZERO
+# define NZERO 20
+#endif
+
/* The name this program was run with. */
char *program_name;