Skip to contentSkip to conversation

kbuild: confdata.c explicitly reference errno, thus need <errno.h>

PATCH Applied Arnaud Lacombe 2 participants 2 messages Aug 17, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kbuild: confdata.c explicitly reference errno, thus need <errno.h>

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.

---
 scripts/kconfig/confdata.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
scripts/kconfig/confdata.c +1 -0
index c39327e..3bcd434 100644
@@ -5,6 +5,7 @@
 
 #include <sys/stat.h>
 #include <ctype.h>
+#include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
Signature · 1 line
1.7.2.30.gc37d7.dirty
Applied
#1 lore raw
Quoted 8 lines · 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)

Quoted 7 lines

triggered on NetBSD.

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

Applied, thanks.

Michal