public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kbuild: confdata.c explicitly reference errno, thus need <errno.h>
@ 2010-08-17  5:40 Arnaud Lacombe
  2010-08-17  7:12 ` Michal Marek
  0 siblings, 1 reply; 2+ messages in thread
From: Arnaud Lacombe @ 2010-08-17  5:40 UTC (permalink / raw)
  To: Sam Ravnborg, Michal Marek; +Cc: linux-kbuild, Arnaud Lacombe

This fixes:
% gmake LKC_GENPARSER=1 menuconfig
[...]
scripts/kconfig/confdata.c:739: error: 'errno' undeclared (first use in this function)
scripts/kconfig/confdata.c:739: error: (Each undeclared identifier is reported only once
scripts/kconfig/confdata.c:739: error: for each function it appears in.)
scripts/kconfig/confdata.c:739: error: 'ENOENT' undeclared (first use in this function)

triggered on NetBSD.

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>

---
 scripts/kconfig/confdata.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c
index c39327e..3bcd434 100644
--- a/scripts/kconfig/confdata.c
+++ b/scripts/kconfig/confdata.c
@@ -5,6 +5,7 @@
 
 #include <sys/stat.h>
 #include <ctype.h>
+#include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
-- 
1.7.2.30.gc37d7.dirty


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

* Re: [PATCH] kbuild: confdata.c explicitly reference errno, thus need <errno.h>
  2010-08-17  5:40 [PATCH] kbuild: confdata.c explicitly reference errno, thus need <errno.h> Arnaud Lacombe
@ 2010-08-17  7:12 ` Michal Marek
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Marek @ 2010-08-17  7:12 UTC (permalink / raw)
  To: Arnaud Lacombe; +Cc: Sam Ravnborg, linux-kbuild

On 17.8.2010 07:40, Arnaud Lacombe wrote:
> This fixes:
> % gmake LKC_GENPARSER=1 menuconfig
> [...]
> scripts/kconfig/confdata.c:739: error: 'errno' undeclared (first use in this function)
> scripts/kconfig/confdata.c:739: error: (Each undeclared identifier is reported only once
> scripts/kconfig/confdata.c:739: error: for each function it appears in.)
> scripts/kconfig/confdata.c:739: error: 'ENOENT' undeclared (first use in this function)
> 
> triggered on NetBSD.
> 
> Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
> 
> ---
>  scripts/kconfig/confdata.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)

Applied, thanks.

Michal

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

end of thread, other threads:[~2010-08-17  7:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-17  5:40 [PATCH] kbuild: confdata.c explicitly reference errno, thus need <errno.h> Arnaud Lacombe
2010-08-17  7:12 ` Michal Marek

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