aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixinc/gnu-regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/fixinc/gnu-regex.c')
-rw-r--r--gcc/fixinc/gnu-regex.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/fixinc/gnu-regex.c b/gcc/fixinc/gnu-regex.c
index 84db70f7952..b24845ba431 100644
--- a/gcc/fixinc/gnu-regex.c
+++ b/gcc/fixinc/gnu-regex.c
@@ -80,6 +80,16 @@
#else /* not emacs */
+# include "auto-host.h"
+
+# if !defined(const) && !defined(HAVE_CONST)
+# define const
+# endif
+
+# if !defined(volatile) && !defined(HAVE_VOLATILE)
+# define volatile
+# endif
+
/* If we are not linking with Emacs proper,
we can't use the relocating allocator
even if config.h says that we can. */