build system: fix build of kconfig on Darwin
authorBernhard Walle <bernhard@bwalle.de>
Sun, 17 Jun 2012 23:51:26 +0000 (01:51 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 17 Jun 2012 23:51:26 +0000 (01:51 +0200)
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.

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
scripts/kconfig/mconf.c

index d3f69f8f5a0467d7676a7d7d1ad6302b405754e8..1b0b6ab07bc3695e51e00a21c01958d1600480fa 100644 (file)
@@ -9,6 +9,8 @@
  */
 
 #define _XOPEN_SOURCE 700
+/* On Darwin, this may be needed to get SIGWINCH: */
+#define _DARWIN_C_SOURCE 1
 
 #include <sys/ioctl.h>
 #include <sys/wait.h>