This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Small bug(fix).


Hi,

In the development version of glibc, `strdup' is an  optimizing macro.
Hence the appended patch (agains 4.16.97).

Thanks,

Mark


1998-04-11  Mark Kettenis  <kettenis@phys.uva.nl>

	* gdb/gdb_string.h (strdup): Declare only if not defined as a
	macro.


===================================================================
RCS file: gdb-4.16.97/gdb/gdb_string.h,v
retrieving revision 1.1
diff -u -r1.1 gdb-4.16.97/gdb/gdb_string.h
--- gdb-4.16.97/gdb/gdb_string.h	1998/04/11 18:46:47	1.1
+++ gdb-4.16.97/gdb/gdb_string.h	1998/04/11 18:47:08
@@ -59,6 +59,8 @@
 # endif
 #endif
 
-extern char *strdup ();
+#ifndef strdup
+extern char *strdup PARAMS ((const char *));
+#endif
 
 #endif	/* !defined(GDB_STRING_H) */