mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-26 07:11:34 -08:00
(regex_compile): Declare p with non-const type on AIX.
This commit is contained in:
parent
6a271152e3
commit
2233624503
1 changed files with 5 additions and 0 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue