changeset 22821:dc8ce74d8633

(regex_compile): Declare p with non-const type on AIX.
author Richard M. Stallman <rms@gnu.org>
date Sat, 25 Jul 1998 06:40:50 +0000
parents fd2cd15ffd6c
children 81b97496e59f
files src/regex.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/regex.c	Sat Jul 25 05:59:11 1998 +0000
+++ b/src/regex.c	Sat Jul 25 06:40:50 1998 +0000
@@ -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.  */