From fed9a8d46e94d6f563d8847c86d8ce5462f226fe Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Wed, 15 Feb 1995 22:57:53 +0000 Subject: [PATCH] Only protect insque/remque on Linux. --- gdb/ChangeLog | 7 +++---- gdb/dcache.c | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f29c4877ea..fd277f2372 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -2,10 +2,9 @@ Wed Feb 15 12:33:20 1995 Michael Meissner * config/powerpc/tm-ppc-eabi.h (TEXT_SEGMENT_BASE): Define as 1. - * dcache.c (insque, remque): If compiling in standard C, protect - insque and remque with macros to cast the pointer arguments to the - proper type. This is for systems like Linux, that define insque - and remque with prototypes in system header files. + * dcache.c (insque, remque): If compiling in standard C on Linux, + protect insque and remque with macros to cast the pointer + arguments to the proper type. Tue Feb 14 17:16:41 1995 Stu Grossman (grossman@cygnus.com) diff --git a/gdb/dcache.c b/gdb/dcache.c index 7a2d0db46c..6f443f123a 100644 --- a/gdb/dcache.c +++ b/gdb/dcache.c @@ -23,7 +23,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "dcache.h" #include "gdbcmd.h" -#ifdef __STDC__ +#if defined(__STDC__) && defined(__linux__) /* In case the system header files define a prototype for insque and remque that uses a pointer to a struct qelem, silence the warnings */ struct qelem;