aboutsummaryrefslogtreecommitdiffstats
path: root/builtins/bashgetopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtins/bashgetopt.c')
-rw-r--r--builtins/bashgetopt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtins/bashgetopt.c b/builtins/bashgetopt.c
index 17bb578..a0b14c0 100644
--- a/builtins/bashgetopt.c
+++ b/builtins/bashgetopt.c
@@ -25,6 +25,7 @@ Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
#endif
#include "../bashansi.h"
+#include <chartypes.h>
#include <errno.h>
#include "../shell.h"
@@ -124,7 +125,7 @@ char *opts;
} else if (*cp == '#') {
/* optional numeric argument */
if (lcurrent->word->word[sp+1]) {
- if (digit(lcurrent->word->word[sp+1])) {
+ if (DIGIT(lcurrent->word->word[sp+1])) {
list_optarg = lcurrent->word->word + sp + 1;
lcurrent = lcurrent->next;
} else