From: Jim Meyering Date: Fri, 6 Oct 1995 02:55:14 +0000 (+0000) Subject: Include limits.h. X-Git-Tag: FILEUTILS-3_12f~114 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cc61df7131109015889d432ce7c7ace630fa1286;p=thirdparty%2Fcoreutils.git Include limits.h. [!INT_MAX]: Define it. --- diff --git a/src/chgrp.c b/src/chgrp.c index b5e62b6654..0ee2b7297b 100644 --- a/src/chgrp.c +++ b/src/chgrp.c @@ -23,6 +23,18 @@ #include #include +#if HAVE_LIMITS_H +# include +#endif + +#ifndef UINT_MAX +# define UINT_MAX ((unsigned int) ~(unsigned int) 0) +#endif + +#ifndef INT_MAX +# define INT_MAX ((int) (UINT_MAX >> 1)) +#endif + #include "system.h" #include "version.h" #include "xstrtoul.h"