aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdb_string.h
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1998-04-20 22:33:52 +0000
committerJason Molenda <jmolenda@apple.com>1998-04-20 22:33:52 +0000
commita38cd80ae71b993001fe458b6a8a7ff2bfca1146 (patch)
tree8e4b27a3aee2adf7be870f0fee9db4f2090859c3 /gdb/gdb_string.h
parent54a0a7df08394c96fd2eaf2b8e370e779ec75e1d (diff)
downloadgdb-a38cd80ae71b993001fe458b6a8a7ff2bfca1146.zip
gdb-a38cd80ae71b993001fe458b6a8a7ff2bfca1146.tar.gz
gdb-a38cd80ae71b993001fe458b6a8a7ff2bfca1146.tar.bz2
Mon Apr 20 15:32:21 1998 Mark Kettenis <kettenis@phys.uva.nl>
* gdb/gdb_string.h (strdup): Declare only if not defined as a macro. Mark glibc development versions are defining strdup as a macro and the prototype hosees it. Either way, this patch shouldn't cause problems.
Diffstat (limited to 'gdb/gdb_string.h')
-rw-r--r--gdb/gdb_string.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/gdb_string.h b/gdb/gdb_string.h
index 0c6b68a..6b8fb82 100644
--- a/gdb/gdb_string.h
+++ b/gdb/gdb_string.h
@@ -59,6 +59,8 @@ extern int memcmp();
# endif
#endif
-extern char *strdup ();
+#ifndef strdup
+extern char *strdup PARAMS ((const char *));
+#endif
#endif /* !defined(GDB_STRING_H) */