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 e4422ce9383..cf89000df11 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -1878,7 +1878,12 @@ regex_compile (pattern, size, syntax, bufp)
1878 compile_stack_type compile_stack; 1878 compile_stack_type compile_stack;
1879 1879
1880 /* Points to the current (ending) position in the pattern. */ 1880 /* Points to the current (ending) position in the pattern. */
1881#ifdef AIX
1882 /* `const' makes AIX compiler fail. */
1883 char *p = pattern;
1884#else
1881 const char *p = pattern; 1885 const char *p = pattern;
1886#endif
1882 const char *pend = pattern + size; 1887 const char *pend = pattern + size;
1883 1888
1884 /* How to translate the characters in the pattern. */ 1889 /* How to translate the characters in the pattern. */