aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>1999-09-14 06:35:01 +0000
committerJeff Law <law@gcc.gnu.org>1999-09-14 00:35:01 -0600
commit2ac2226c50dee5631e64c1771c93fcd23cb34cbd (patch)
tree038aa3dc2f61b884cca67a3e4a3dda230110dcac /include
parent4bbf910eefafa77900eb9234feac7dce5451e18b (diff)
downloadgcc-2ac2226c50dee5631e64c1771c93fcd23cb34cbd.zip
gcc-2ac2226c50dee5631e64c1771c93fcd23cb34cbd.tar.gz
gcc-2ac2226c50dee5631e64c1771c93fcd23cb34cbd.tar.bz2
libiberty.h (basename): OpenBSD has a correct prototype.
* libiberty.h (basename): OpenBSD has a correct prototype. (xrealloc): Remove outdated comment. From-SVN: r29390
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog5
-rw-r--r--include/libiberty.h7
2 files changed, 7 insertions, 5 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 0f317e9..b70a852 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,8 @@
+Tue Sep 14 00:35:02 1999 Marc Espie <espie@cvs.openbsd.org>
+
+ * libiberty.h (basename): OpenBSD has a correct prototype.
+ (xrealloc): Remove outdated comment.
+
1999-09-07 Jeff Garzik <jgarzik@pobox.com>
* libiberty.h (xmemdup): Add prototype for new function.
diff --git a/include/libiberty.h b/include/libiberty.h
index 0bcce671..6832c7e 100644
--- a/include/libiberty.h
+++ b/include/libiberty.h
@@ -36,7 +36,7 @@ extern char **dupargv PARAMS ((char **));
across different systems, sometimes as "char *" and sometimes as
"const char *" */
-#if defined (__GNU_LIBRARY__ ) || defined (__linux__) || defined (__FreeBSD__) || defined (__CYGWIN__) || defined (__CYGWIN32__)
+#if defined (__GNU_LIBRARY__ ) || defined (__linux__) || defined (__FreeBSD__) || defined (__OpenBSD__) || defined (__CYGWIN__) || defined (__CYGWIN32__)
extern char *basename PARAMS ((const char *));
#else
extern char *basename ();
@@ -133,10 +133,7 @@ extern void xmalloc_set_program_name PARAMS ((const char *));
#endif
extern PTR xmalloc PARAMS ((size_t));
-/* Reallocate memory without fail. This works like xmalloc.
-
- FIXME: We do not declare the parameter types for the same reason as
- xmalloc. */
+/* Reallocate memory without fail. This works like xmalloc. */
extern PTR xrealloc PARAMS ((PTR, size_t));