# HG changeset patch # User Richard Stallman # Date 901348850 0 # Node ID ba6fdbf593bbbf2e34e3d1e062d34da06738fb94 # Parent 9ee89fcc75050adc63661d763ce36346a5b06c0e (regex_compile): Declare p with non-const type on AIX. diff --git a/regex.c b/regex.c --- a/regex.c +++ b/regex.c @@ -1878,7 +1878,12 @@ 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. */