From: Tom Tromey Date: Tue, 7 Nov 2023 00:35:29 +0000 (-0700) Subject: Remove declaration of re_comp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e5da53e26f4e3b14c542a0cb65828a3a9e574ca3;p=binutils-gdb.git 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 --- 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);