aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/regex.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/regex.c b/src/regex.c
index e4422ce938..cf89000df1 100644
--- a/src/regex.c
+++ b/src/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. */