[PATCH] Fix build of kconfig on Darwin
Bernhard Walle
bernhard at bwalle.de
Wed Jun 13 20:11:22 UTC 2012
Of course busybox cannot be used on Darwin (Mac OS X), but it can be
cross-compiled for Linux there. Cross-compilation still requires kconfig
to be built as native host tool.
Commit b83c9704128dd106071184e4b00335a3b8486857 broke compilation on
Darwin. This patch fixes the problem, without hopefully breaking
compilation on other systems.
Signed-off-by: Bernhard Walle <bernhard at bwalle.de>
---
scripts/kconfig/mconf.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c
index d3f69f8..322fc89 100644
--- a/scripts/kconfig/mconf.c
+++ b/scripts/kconfig/mconf.c
@@ -9,6 +9,7 @@
*/
#define _XOPEN_SOURCE 700
+#define _DARWIN_C_SOURCE /* for SIGWINCH */
#include <sys/ioctl.h>
#include <sys/wait.h>
--
1.7.10.4
More information about the busybox
mailing list