From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5239 invoked by alias); 23 Jul 2008 07:57:58 -0000 Received: (qmail 5227 invoked by uid 22791); 23 Jul 2008 07:57:57 -0000 X-Spam-Check-By: sourceware.org Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 23 Jul 2008 07:57:38 +0000 Received: from Relay1.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 9E34345D37; Wed, 23 Jul 2008 09:57:35 +0200 (CEST) From: Andreas Schwab To: "" Doug Kwan (=?utf-8?B?6Zec5oyv5b63?=) "" Cc: gdb-patches@sourceware.org Subject: Re: [PATCH][gdbserver] Check for sys/dir.h and sys.user.h in configuration. References: <498552560807221759w1ade0ec2jd63c12475ddb5217@mail.gmail.com> X-Yow: HUGH BEAUMONT died in 1982!! Date: Wed, 23 Jul 2008 07:57:00 -0000 In-Reply-To: <498552560807221759w1ade0ec2jd63c12475ddb5217@mail.gmail.com> (Doug Kwan's message of "Tue, 22 Jul 2008 17:59:21 -0700") Message-ID: User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-07/txt/msg00410.txt.bz2 ""Doug Kwan (=E9=97=9C=E6=8C=AF=E5=BE=B7)"" writes: > @@ -1704,7 +1708,9 @@ linux_write_memory (CORE_ADDR memaddr, c > =3D (((memaddr + len) - addr) + sizeof (PTRACE_XFER_TYPE) - 1) / sizeo= f (PTRACE_XFER_TYPE); > /* Allocate buffer of that many longwords. */ > register PTRACE_XFER_TYPE *buffer =3D (PTRACE_XFER_TYPE *) alloca (cou= nt * sizeof (PTRACE_XFER_TYPE)); > +#ifndef STDC_HEADERS > extern int errno; > +#endif Just delete that declaration, errno is already used before that function anyway. Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=C3=9Fe 5, 90409 N=C3=BCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."