[PATCH][gdbserver] Check for sys/dir.h and sys.user.h in configuration.

Andreas Schwab schwab@suse.de
Wed Jul 23 07:57:00 GMT 2008


""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."



More information about the Gdb-patches mailing list