summaryrefslogtreecommitdiff
path: root/src/chgrp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/chgrp.c')
-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