From: Jim Meyering Date: Wed, 3 Jul 1996 22:42:41 +0000 (+0000) Subject: [!MAXUID]: Define after inclusion of system.h to avoid X-Git-Tag: TEXTUTILS-1_18c~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce8535214688756d14b3a975098efa9a81a3df15;p=thirdparty%2Fcoreutils.git [!MAXUID]: Define after inclusion of system.h to avoid warning about redefinition on SunOS4, Solaris2.4 and SGI-irix5.3. From Kaveh Ghazi. --- diff --git a/src/chgrp.c b/src/chgrp.c index 8900091ba4..7be402ca45 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