summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-07-03 22:42:41 +0000
committerJim Meyering <jim@meyering.net>1996-07-03 22:42:41 +0000
commitce8535214688756d14b3a975098efa9a81a3df15 (patch)
tree8f7ea85e80ac60882f3ba822d2e94c5577ec1df8
parent7786c6e2cfe6c037dc4d1b39b61eb94ca7eae747 (diff)
downloadcoreutils-ce8535214688756d14b3a975098efa9a81a3df15.tar.xz
[!MAXUID]: Define after inclusion of system.h to avoid
warning about redefinition on SunOS4, Solaris2.4 and SGI-irix5.3. From Kaveh Ghazi.
-rw-r--r--src/chgrp.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/chgrp.c b/src/chgrp.c
index 8900091ba..7be402ca4 100644
--- a/src/chgrp.c
+++ b/src/chgrp.c
@@ -35,14 +35,15 @@
# define INT_MAX ((int) (UINT_MAX >> 1))
#endif
-#ifndef MAXUID
-# define MAXUID INT_MAX
-#endif
-
#include "system.h"
#include "xstrtoul.h"
#include "error.h"
+/* MAXUID may come from limits.h *or* sys/params.h (via system.h) above. */
+#ifndef MAXUID
+# define MAXUID INT_MAX
+#endif
+
#ifndef _POSIX_VERSION
struct group *getgrnam ();
#endif