ar71xx: keep the RouterBOARD Power LED in On state
[oweals/openwrt.git] / target / linux / generic / patches-4.9 / 211-host_tools_portability.patch
1 --- a/tools/perf/pmu-events/jevents.c
2 +++ b/tools/perf/pmu-events/jevents.c
3 @@ -35,6 +35,7 @@
4  #include <stdlib.h>
5  #include <errno.h>
6  #include <string.h>
7 +#include <strings.h>
8  #include <ctype.h>
9  #include <unistd.h>
10  #include <stdarg.h>
11 --- a/tools/perf/pmu-events/json.c
12 +++ b/tools/perf/pmu-events/json.c
13 @@ -38,7 +38,6 @@
14  #include <unistd.h>
15  #include "jsmn.h"
16  #include "json.h"
17 -#include <linux/kernel.h>
18  
19  
20  static char *mapfile(const char *fn, size_t *size)
21 --- a/tools/build/Build.include
22 +++ b/tools/build/Build.include
23 @@ -95,4 +95,4 @@ cxx_flags = -Wp,-MD,$(depfile),-MT,$@ $(
24  ###
25  ## HOSTCC C flags
26  
27 -host_c_flags = -Wp,-MD,$(depfile),-MT,$@ $(CHOSTFLAGS) -D"BUILD_STR(s)=\#s" $(CHOSTFLAGS_$(basetarget).o) $(CHOSTFLAGS_$(obj))
28 +host_c_flags = -MD -MF $(depfile) -MT $@ $(CHOSTFLAGS) -D"BUILD_STR(s)=\#s" $(CHOSTFLAGS_$(basetarget).o) $(CHOSTFLAGS_$(obj))