aboutsummaryrefslogtreecommitdiff
path: root/gdb/regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/regex.c')
-rw-r--r--gdb/regex.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/gdb/regex.c b/gdb/regex.c
index d83740f..78b1f47 100644
--- a/gdb/regex.c
+++ b/gdb/regex.c
@@ -32,14 +32,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#else /* not emacs */
-/* Make alloca work the best possible way. */
-#ifdef __GNUC__
-#define alloca __builtin_alloca
-#else
-#ifdef sparc
-#include <alloca.h>
-#endif
-#endif
+#include "defs.h"
+#include <string.h>
/*
* Define the syntax stuff, so we can do the \<...\> things.
@@ -1556,7 +1550,7 @@ static struct re_pattern_buffer re_comp_buf;
char *
re_comp (s)
- char *s;
+ const char *s;
{
if (!s)
{