From ce8535214688756d14b3a975098efa9a81a3df15 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 3 Jul 1996 22:42:41 +0000 Subject: [!MAXUID]: Define after inclusion of system.h to avoid warning about redefinition on SunOS4, Solaris2.4 and SGI-irix5.3. From Kaveh Ghazi. --- src/chgrp.c | 9 +++++---- 1 file 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 -- cgit v1.2.3-70-g09d2