]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(NZERO) [NZERO == 0]: Undefine and define to 20,
authorJim Meyering <jim@meyering.net>
Tue, 15 Feb 2005 08:20:49 +0000 (08:20 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 15 Feb 2005 08:20:49 +0000 (08:20 +0000)
to work around the invalid definition from Darwin 7.7.0.

src/nice.c

index 83e7fd9b4ee8fd5cd024ea2c3a651f409eaea633..0871343ba732544ed384af3b5c5c4f6fc39e196e 100644 (file)
@@ -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
 # 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;