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"