public inbox for gdb-cvs@sourceware.org help / color / mirror / Atom feed
From: Kamil Rytarowski <krytarowski@sourceware.org> To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Include <alloca.h> conditionally Date: Wed, 18 Mar 2020 01:30:21 +0000 (GMT) [thread overview] Message-ID: <20200318013021.4EA09387702B@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d3e2a5e85df4c8454135503c1034b95fecd522ab commit d3e2a5e85df4c8454135503c1034b95fecd522ab Author: Kamil Rytarowski <n54@gmx.com> Date: Tue Mar 17 15:01:55 2020 +0100 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. Diff: --- gdbsupport/ChangeLog | 4 ++++ gdbsupport/common-defs.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gdbsupport/ChangeLog b/gdbsupport/ChangeLog index c471726af5e..f62e440af7f 100644 --- a/gdbsupport/ChangeLog +++ b/gdbsupport/ChangeLog @@ -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> * common-types.h: Remove GDBSERVER code. diff --git a/gdbsupport/common-defs.h b/gdbsupport/common-defs.h index 65500ce7634..e42d2b80c04 100644 --- a/gdbsupport/common-defs.h +++ b/gdbsupport/common-defs.h @@ -92,7 +92,9 @@ #include <strings.h> /* for strcasecmp and strncasecmp */ #endif #include <errno.h> +#if HAVE_ALLOCA_H #include <alloca.h> +#endif #include "ansidecl.h" /* This is defined by ansidecl.h, but we prefer gnulib's version. On
reply other threads:[~2020-03-18 1:30 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200318013021.4EA09387702B@sourceware.org \ --to=krytarowski@sourceware.org \ --cc=gdb-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).