From 19668ec8f40f07f21bdb224ddfe708f8637b7e23 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Sat, 25 Jul 1998 06:40:50 +0000 Subject: [PATCH] (regex_compile): Declare p with non-const type on AIX. --- regex.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/regex.c b/regex.c index e4422ce938..cf89000df1 100644 --- a/regex.c +++ b/regex.c @@ -1878,7 +1878,12 @@ regex_compile (pattern, size, syntax, bufp) compile_stack_type compile_stack; /* Points to the current (ending) position in the pattern. */ +#ifdef AIX + /* `const' makes AIX compiler fail. */ + char *p = pattern; +#else const char *p = pattern; +#endif const char *pend = pattern + size; /* How to translate the characters in the pattern. */ -- 2.30.2