This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH][gdbserver] Check for sys/dir.h and sys.user.h in configuration.
- From: Andreas Schwab <schwab at suse dot de>
- To: "" Doug Kwan (éæå) "" <dougkwan at google dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 23 Jul 2008 09:57:35 +0200
- Subject: Re: [PATCH][gdbserver] Check for sys/dir.h and sys.user.h in configuration.
- References: <498552560807221759w1ade0ec2jd63c12475ddb5217@mail.gmail.com>
""Doug Kwan (éæå)"" <dougkwan@google.com> writes:
> @@ -1704,7 +1708,9 @@ linux_write_memory (CORE_ADDR memaddr, c
> = (((memaddr + len) - addr) + sizeof (PTRACE_XFER_TYPE) - 1) / sizeof (PTRACE_XFER_TYPE);
> /* Allocate buffer of that many longwords. */
> register PTRACE_XFER_TYPE *buffer = (PTRACE_XFER_TYPE *) alloca (count * sizeof (PTRACE_XFER_TYPE));
> +#ifndef STDC_HEADERS
> extern int errno;
> +#endif
Just delete that declaration, errno is already used before that function
anyway.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, MaxfeldstraÃe 5, 90409 NÃrnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."