aboutsummaryrefslogtreecommitdiffstats
path: root/src/regex.c
diff options
context:
space:
mode:
authorRichard M. Stallman1998-07-25 06:40:50 +0000
committerRichard M. Stallman1998-07-25 06:40:50 +0000
commit22336245032e63f13ca281f3e4c4e7929bbcf650 (patch)
treee6cb6480e1d5b812dcefab1ccb547a03a8b955a5 /src/regex.c
parent6a271152e3930466f70c666d3f05ccbbabb0b362 (diff)
downloademacs-22336245032e63f13ca281f3e4c4e7929bbcf650.tar.gz
emacs-22336245032e63f13ca281f3e4c4e7929bbcf650.zip
(regex_compile): Declare p with non-const type on AIX.
Diffstat (limited to 'src/regex.c')
-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. */