From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] kconfig: Fix build on Darwin
Date: Wed, 20 Feb 2013 19:06:10 +0100 [thread overview]
Message-ID: <20130220180610.GD5360@pengutronix.de> (raw)
In-Reply-To: <1361014408-41323-1-git-send-email-bernhard@bwalle.de>
On Sat, Feb 16, 2013 at 12:33:28PM +0100, Bernhard Walle wrote:
> Darwin 12.2.0 (Mac OS 10.8) defines CIRCLEQ_HEAD but doesn't define
> CIRCLEQ_HEAD_INITIALIZER. Since mconf.c uses CIRCLEQ_HEAD_INITIALIZER,
> the build fails.
>
> A simple and safe fix is to always use our own copy of the CIRCLEQ_
> macros on every platform. Include "missing.h" and don't include
> <sys/queue.h". That works also on Linux, verified on current Arch Linux
> with glibc 2.17.
I prefer a AC_CHECK_HEADER in configure.ac and the use
"#ifdef SYS_QUEUE_H", I think.
Also, you need to add a patch to scripts/ptx-modifications/ so this is not
lost, when we update to a newer kconfig version.
Michael
> Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
> ---
> scripts/kconfig/expr.h | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/scripts/kconfig/expr.h b/scripts/kconfig/expr.h
> index 59402a3..041b08e 100644
> --- a/scripts/kconfig/expr.h
> +++ b/scripts/kconfig/expr.h
> @@ -12,7 +12,6 @@ extern "C" {
>
> #include <assert.h>
> #include <stdio.h>
> -#include <sys/queue.h>
> #ifndef __cplusplus
> #include <stdbool.h>
> #endif
> --
> 1.8.1.3
>
>
> --
> ptxdist mailing list
> ptxdist@pengutronix.de
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2013-02-20 18:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-16 11:33 Bernhard Walle
2013-02-20 18:06 ` Michael Olbrich [this message]
2013-05-11 7:19 ` Andreas Bießmann
2013-05-13 7:37 ` Michael Olbrich
2013-05-13 8:00 ` Andreas Bießmann
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=20130220180610.GD5360@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/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: link
Be 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