]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Include limits.h.
authorJim Meyering <jim@meyering.net>
Fri, 6 Oct 1995 02:55:14 +0000 (02:55 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 6 Oct 1995 02:55:14 +0000 (02:55 +0000)
[!INT_MAX]: Define it.

src/chgrp.c

index b5e62b6654efe26c1eb48f5e575c851501c963e1..0ee2b7297bf394e1ac0b218d73323902dd0be61f 100644 (file)
 #include <grp.h>
 #include <getopt.h>
 
+#if HAVE_LIMITS_H
+# include <limits.h>
+#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"