From cc61df7131109015889d432ce7c7ace630fa1286 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 6 Oct 1995 02:55:14 +0000 Subject: [PATCH] Include limits.h. [!INT_MAX]: Define it. --- src/chgrp.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/chgrp.c b/src/chgrp.c index b5e62b665..0ee2b7297 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"