From: Jason Molenda Date: Mon, 20 Apr 1998 22:33:52 +0000 (+0000) Subject: Mon Apr 20 15:32:21 1998 Mark Kettenis X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a38cd80ae71b993001fe458b6a8a7ff2bfca1146;p=binutils-gdb.git Mon Apr 20 15:32:21 1998 Mark Kettenis * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f7f3240e7b2..6f4aa224a04 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Mon Apr 20 15:32:21 1998 Mark Kettenis + + * gdb/gdb_string.h (strdup): Declare only if not defined as a + macro. + Mon Apr 20 14:18:45 1998 J. Kean Johnston * procfs.c: Added replacement macros for LWP stuff. Fixed support diff --git a/gdb/gdb_string.h b/gdb/gdb_string.h index 0c6b68af034..6b8fb820f3c 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) */