From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31076 invoked by alias); 10 Aug 2008 17:49:22 -0000 Received: (qmail 31067 invoked by uid 22791); 10 Aug 2008 17:49:21 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 10 Aug 2008 17:48:47 +0000 Received: (qmail 11952 invoked from network); 10 Aug 2008 17:48:45 -0000 Received: from unknown (HELO orlando.local) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 10 Aug 2008 17:48:45 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: Patches to build on DJGPP Date: Sun, 10 Aug 2008 17:49:00 -0000 User-Agent: KMail/1.9.9 Cc: Mark Kettenis References: <200808092241.46195.pedro@codesourcery.com> <200808101536.m7AFadSV028043@brahms.sibelius.xs4all.nl> <200808101840.25872.pedro@codesourcery.com> In-Reply-To: <200808101840.25872.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200808101848.48133.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-08/txt/msg00280.txt.bz2 On Sunday 10 August 2008 18:40:25, Pedro Alves wrote: > I just checked that this in gdb_select.h, and dropping the include > in posix-hdep.c buils fine in DJGPP. > > --- src.orig/gdb/gdb_select.h > +++ src/gdb/gdb_select.h > @@ -22,10 +22,8 @@ > > #ifdef HAVE_SYS_SELECT_H > #include > -#endif > - > -#ifdef HAVE_SYS_TYPES_H > -#include > +#else > +#include > #endif > > We already include sys/time.h in common code without a HAVE_SYS... > wrapper (event-loop.c), so I guess this is the best to do here? Sorry, that diff was confusing -- is was a diff against the previous diff. What I meant was simply: --- src.orig/gdb/gdb_select.h 2008-08-10 18:47:57.000000000 +0100 +++ src/gdb/gdb_select.h 2008-08-10 18:48:08.000000000 +0100 @@ -22,6 +22,8 @@ #ifdef HAVE_SYS_SELECT_H #include +#else +#include #endif -- Pedro Alves