mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 04:00:07 +08:00
Include <alloca.h> conditionally
Fixes build on NetBSD, where alloca() is defined in <stdlib.h>. gdbsupport: * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2020-03-17 Kamil Rytarowski <n54@gmx.com>
|
||||||
|
|
||||||
|
* common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
|
||||||
|
|
||||||
2020-03-12 Tom Tromey <tom@tromey.com>
|
2020-03-12 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
* common-types.h: Remove GDBSERVER code.
|
* common-types.h: Remove GDBSERVER code.
|
||||||
|
@ -92,7 +92,9 @@
|
|||||||
#include <strings.h> /* for strcasecmp and strncasecmp */
|
#include <strings.h> /* for strcasecmp and strncasecmp */
|
||||||
#endif
|
#endif
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#if HAVE_ALLOCA_H
|
||||||
#include <alloca.h>
|
#include <alloca.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "ansidecl.h"
|
#include "ansidecl.h"
|
||||||
/* This is defined by ansidecl.h, but we prefer gnulib's version. On
|
/* This is defined by ansidecl.h, but we prefer gnulib's version. On
|
||||||
|
Reference in New Issue
Block a user