1
Fork 0
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:
Richard M. Stallman 1998-07-25 06:40:50 +00:00
parent 6a271152e3
commit 2233624503

View file

@ -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. */