diff options
| author | Richard M. Stallman <rms@gnu.org> | 1998-07-25 06:40:50 +0000 |
|---|---|---|
| committer | Richard M. Stallman <rms@gnu.org> | 1998-07-25 06:40:50 +0000 |
| commit | 22336245032e63f13ca281f3e4c4e7929bbcf650 (patch) | |
| tree | e6cb6480e1d5b812dcefab1ccb547a03a8b955a5 /src/regex.c | |
| parent | 6a271152e3930466f70c666d3f05ccbbabb0b362 (diff) | |
| download | emacs-22336245032e63f13ca281f3e4c4e7929bbcf650.tar.gz | |
(regex_compile): Declare p with non-const type on AIX.
Diffstat (limited to 'src/regex.c')
| -rw-r--r-- | src/regex.c | 5 |
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) 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. */ |
