All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fixdep: define _POSIX_C_SOURCE
@ 2011-04-09 20:55 ` Valentin Ochs
  0 siblings, 0 replies; 2+ messages in thread
From: Valentin Ochs @ 2011-04-09 20:55 UTC (permalink / raw)
  Cc: trivial, linux-kbuild, linux-kernel

fixdep.c uses 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.

Best regards,
Valentin

Signed-off-by: Valentin Ochs <a@0au.de>
---
--- a/scripts/basic/fixdep.c
+++ b/scripts/basic/fixdep.c
@@ -102,6 +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>

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

* [PATCH] fixdep: define _POSIX_C_SOURCE
@ 2011-04-09 20:55 ` Valentin Ochs
  0 siblings, 0 replies; 2+ messages in thread
From: Valentin Ochs @ 2011-04-09 20:55 UTC (permalink / raw)
  Cc: trivial, linux-kbuild, linux-kernel

fixdep.c uses 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.

Best regards,
Valentin

Signed-off-by: Valentin Ochs <a@0au.de>
---
--- a/scripts/basic/fixdep.c
+++ b/scripts/basic/fixdep.c
@@ -102,6 +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>

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

end of thread, other threads:[~2011-04-09 20:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-09 20:55 [PATCH] fixdep: define _POSIX_C_SOURCE Valentin Ochs
2011-04-09 20:55 ` Valentin Ochs

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.