kbuild: confdata.c explicitly reference errno, thus need <errno.h>
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
@@ -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
Michal Marek
AppliedQuoted 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 oncescripts/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.
Signed-off-by Arnaud Lacombe <[email protected]>--- scripts/kconfig/confdata.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
Applied, thanks.
Michal