From a38cd80ae71b993001fe458b6a8a7ff2bfca1146 Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Mon, 20 Apr 1998 22:33:52 +0000 Subject: [PATCH] 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. --- gdb/ChangeLog | 5 +++++ gdb/gdb_string.h | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f7f3240e7b..6f4aa224a0 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 0c6b68af03..6b8fb820f3 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) */ -- 2.34.1