summaryrefslogtreecommitdiff
path: root/gdb/gdb_regex.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-01-02 19:35:31 +0000
committerMark Kettenis <kettenis@gnu.org>2003-01-02 19:35:31 +0000
commita0e685fd7394d3aac66841e4dc2bd8c3301a3233 (patch)
treec18497cec03617fc380a7342c00b0fe470ee579a /gdb/gdb_regex.h
parentc314ab2c3c0ff7cfa28058a722da68c12a5e9405 (diff)
downloadgdb-a0e685fd7394d3aac66841e4dc2bd8c3301a3233.tar.gz
* configure.in: Rewrite check for GNU regex and the
--without-included regex option, and move it into the "Checks for library functions" section. This makes us use the system regex again by default on systems with version 2 of the GNU C library. This was apparently broken. * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define. * acconfig.h (USE_INCLUDED_REGEX): Remove. * config.in, configure: Regenerated.
Diffstat (limited to 'gdb/gdb_regex.h')
-rw-r--r--gdb/gdb_regex.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/gdb/gdb_regex.h b/gdb/gdb_regex.h
index 27a570a1f40..7e270f4efe6 100644
--- a/gdb/gdb_regex.h
+++ b/gdb/gdb_regex.h
@@ -1,5 +1,5 @@
-/* Portable <regex.h>
- Copyright 2000, 2001 Free Software Foundation, Inc.
+/* Portable <regex.h>.
+ Copyright 2000, 2001, 2003 Free Software Foundation, Inc.
This file is part of GDB.
@@ -19,12 +19,14 @@
Boston, MA 02111-1307, USA. */
#ifndef GDB_REGEX_H
-#define GDB_REGEX_H
+#define GDB_REGEX_H 1
#ifdef USE_INCLUDED_REGEX
-#include "xregex.h"
+# include "xregex.h"
#else
-#include <regex.h>
+/* Request 4.2 BSD regex functions. */
+# define _REGEX_RE_COMP
+# include <regex.h>
#endif
-#endif /* gdb_regex.h */
+#endif /* not GDB_REGEX_H */