From e5da53e26f4e3b14c542a0cb65828a3a9e574ca3 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 6 Nov 2023 17:35:29 -0700 Subject: [PATCH] Remove declaration of re_comp defs.h declares re_comp, but it shouldn't. If this is needed, it should be picked up from xregex.h via gdb_regex.h. Tested by rebuilding. Reviewed-by: Kevin Buettner --- gdb/defs.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gdb/defs.h b/gdb/defs.h index b8612e1ac6d..e6dd93e791e 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -299,12 +299,6 @@ extern std::string relocate_gdb_directory (const char *initial, bool relocatable extern int annotation_level; /* in stack.c */ -/* From regex.c or libc. BSD 4.4 declares this with the argument type as - "const char *" in unistd.h, so we can't declare the argument - as "char *". */ - -extern "C" char *re_comp (const char *); - /* From symfile.c */ extern void symbol_file_command (const char *, int); -- 2.30.2