History

kconfig: clean up header inclusion

- Add missing includes. - Remove no longer necessary includes.

Boris Kolpackov committed 5 years ago

Commit 78cb0901 parent f4632694 files · +2 −3Browse files

Showing the changes to scripts (4 of 4 files). Show all

Unified · Split

4 files
  1. scripts/kconfig/conf.c +0 −1
  2. scripts/kconfig/confdata.c +1 −0
  3. scripts/kconfig/lexer.l +0 −1
  4. scripts/kconfig/symbol.c +1 −1
scripts/kconfig/conf.c+0−1
@@ -11,7 +11,6 @@ · 10 unmodified lines
1111 #include <time.h>
1212 #include <unistd.h>
1313 #include <getopt.h>
14−#include <sys/stat.h>
1514 #include <sys/time.h>
1615 #include <errno.h>
1716
scripts/kconfig/confdata.c+1−0
@@ -5,6 +5,7 @@ · 4 unmodified lines
55
66 #include <sys/mman.h>
77 #include <sys/stat.h>
8+#include <sys/types.h>
89 #include <ctype.h>
910 #include <errno.h>
1011 #include <fcntl.h>
scripts/kconfig/lexer.l+0−1
@@ -12,7 +12,6 @@ · 11 unmodified lines
1212 #include <stdio.h>
1313 #include <stdlib.h>
1414 #include <string.h>
15−#include <unistd.h>
1615
1716 #include "lkc.h"
1817 #include "parser.tab.h"
scripts/kconfig/symbol.c+1−1
@@ -3,11 +3,11 @@ · 2 unmodified lines
33 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
44 */
55
6+#include <sys/types.h>
67 #include <ctype.h>
78 #include <stdlib.h>
89 #include <string.h>
910 #include <regex.h>
10−#include <sys/utsname.h>
1111
1212 #include "lkc.h"
1313