public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] kconfig/kbuild: define _POSIX_C_SOURCE
@ 2011-04-10  2:09 Valentin Ochs
  2011-04-10  3:34 ` Arnaud Lacombe
  0 siblings, 1 reply; 6+ messages in thread
From: Valentin Ochs @ 2011-04-10  2:09 UTC (permalink / raw)
  Cc: Michal Marek, Roman Zippel, trivial, linux-kbuild, linux-kernel

The three patched files use PATH_MAX without defining the required
_POSIX_C_SOURCE feature test macro.  This prevents compilation with the
musl libc.  The patch applies to 2.6.38.2.  

Changes since v1:
 - fix scripts/kconfig/lex.zconf.c_shipped
 - fix scripts/kconfig/mconf.c

Sorry about the incomplete patch I sent a few hours ago, it won't happen
again. :)

Best regards,
Valentin

Signed-off-by: Valentin Ochs <a@0au.de>
---
--- a/scripts/basic/fixdep.c
+++ b/scripts/basic/fixdep.c
@@ -102,7 +102,7 @@
  * through arch/um/include/uml-config.h; this fixdep "bug" makes sure that
  * those files will have correct dependencies.
  */
 
+#define _POSIX_C_SOURCE 200809L
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/mman.h>
--- a/scripts/kconfig/lex.zconf.c_shipped
+++ b/scripts/kconfig/lex.zconf.c_shipped
@@ -35,6 +35,7 @@
 /* First, we deal with  platform-specific or compiler-specific issues. */
 
 /* begin standard C headers. */
+#define _POSIX_C_SOURCE 200809L
 #include <stdio.h>
 #include <string.h>
 #include <errno.h>
--- a/scripts/kconfig/mconf.c
+++ b/scripts/kconfig/mconf.c
@@ -7,7 +7,7 @@
  *
  * i18n, 2005, Arnaldo Carvalho de Melo <acme@conectiva.com.br>
  */
 
+#define _POSIX_C_SOURCE 200809L
 #include <ctype.h>
 #include <errno.h>
 #include <fcntl.h>

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

end of thread, other threads:[~2011-04-19 17:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-10  2:09 [PATCH v2] kconfig/kbuild: define _POSIX_C_SOURCE Valentin Ochs
2011-04-10  3:34 ` Arnaud Lacombe
2011-04-10 14:31   ` Valentin Ochs
2011-04-19  9:54     ` Michal Marek
2011-04-19 17:03       ` Arnaud Lacombe
2011-04-19 17:07         ` Arnaud Lacombe

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