diff options
-rw-r--r-- | src/chgrp.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/chgrp.c b/src/chgrp.c index 57904ac49..3e6c82d7e 100644 --- a/src/chgrp.c +++ b/src/chgrp.c @@ -24,6 +24,12 @@ #include <getopt.h> #include "system.h" +#ifndef isascii +#define isascii(c) 1 +#endif + +#define ISDIGIT(c) (isascii (c) && isdigit (c)) + #ifndef _POSIX_VERSION struct group *getgrnam (); #endif @@ -260,7 +266,7 @@ isnumber (str) char *str; { for (; *str; str++) - if (!isdigit (*str)) + if (!ISDIGIT (*str)) return 0; return 1; } |