scripts/genksyms: fix header usage
PATCH 1/1 scripts/genksyms: fix header usage
FreeBSD does not like <malloc.h> when __STDC__ is defined, use the standard <stdlib.h> instead.
Signed-off-by Arnaud Lacombe <[email protected]>
--- scripts/genksyms/parse.c_shipped | 2 +- scripts/genksyms/parse.y | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
scripts/genksyms/parse.c_shipped +1 -1
@@ -160,7 +160,7 @@ #include <assert.h> -#include <malloc.h> +#include <stdlib.h> #include "genksyms.h" static int is_typedef;
scripts/genksyms/parse.y +1 -1
@@ -24,7 +24,7 @@ %{ #include <assert.h> -#include <malloc.h> +#include <stdlib.h> #include "genksyms.h" static int is_typedef;
Signature · 1 line
1.7.2.30.gc37d7.dirty
Quoted 8 lines · Arnaud Lacombe
FreeBSD does not like <
malloc.h> when__STDC__is defined, use the standard <stdlib.h> instead.Signed-off-by Arnaud Lacombe <[email protected]>--- scripts/genksyms/parse.c_shipped | 2 +- scripts/genksyms/parse.y | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Applied to kbuild-2.6.git#kbuild, thanks.
Michal