aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-09-20 21:49:24 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-09-20 21:49:24 +0000
commit1bef45eae0dafe13dc1fa2c309301dc02ce40f6f (patch)
treee57d96446df57b7de7b8f7c18affc3058f210bfe /gdb/defs.h
parent66a48870ac0d96f42e51e89a1b04d08e2399cb81 (diff)
downloadgdb-1bef45eae0dafe13dc1fa2c309301dc02ce40f6f.zip
gdb-1bef45eae0dafe13dc1fa2c309301dc02ce40f6f.tar.gz
gdb-1bef45eae0dafe13dc1fa2c309301dc02ce40f6f.tar.bz2
* defs.h: Declare argument of re_comp as const char *.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r--gdb/defs.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index 4791f3a..35749d0 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -265,10 +265,12 @@ perror_with_name PARAMS ((char *));
extern void
print_sys_errmsg PARAMS ((char *, int));
-/* From regex.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 char *
-re_comp PARAMS ((char *));
+re_comp PARAMS ((const char *));
/* From symfile.c */