diff options
author | Jason Molenda <jmolenda@apple.com> | 1998-04-20 22:33:52 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1998-04-20 22:33:52 +0000 |
commit | a38cd80ae71b993001fe458b6a8a7ff2bfca1146 (patch) | |
tree | 8e4b27a3aee2adf7be870f0fee9db4f2090859c3 /gdb/gdb_string.h | |
parent | 54a0a7df08394c96fd2eaf2b8e370e779ec75e1d (diff) | |
download | gdb-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.h | 4 |
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) */ |