public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fixdep: define _POSIX_C_SOURCE
@ 2011-04-09 20:55 Valentin Ochs
  0 siblings, 0 replies; only message 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] only message in thread

only message in thread, other threads:[~2011-04-09 20:55 UTC | newest]

Thread overview: (only message) (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

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