mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] kconfig: Fix build on Darwin
@ 2013-02-16 11:33 Bernhard Walle
  2013-02-20 18:06 ` Michael Olbrich
  0 siblings, 1 reply; 5+ messages in thread
From: Bernhard Walle @ 2013-02-16 11:33 UTC (permalink / raw)
  To: ptxdist

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.

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-05-13  7:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-16 11:33 [ptxdist] [PATCH] kconfig: Fix build on Darwin Bernhard Walle
2013-02-20 18:06 ` Michael Olbrich
2013-05-11  7:19   ` Andreas Bießmann
2013-05-13  7:37     ` Michael Olbrich
2013-05-13  8:00       ` Andreas Bießmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox