Commit 01660dfc37933c92dbb7c5718aea61f88025d71f

Authored by Arnaud Lacombe
Committed by Michal Marek
1 parent 8af27e1dc4

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 <lacombar@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

scripts/genksyms/parse.c_shipped
... ... @@ -160,7 +160,7 @@
160 160  
161 161  
162 162 #include <assert.h>
163   -#include <malloc.h>
  163 +#include <stdlib.h>
164 164 #include "genksyms.h"
165 165  
166 166 static int is_typedef;
scripts/genksyms/parse.y
... ... @@ -24,7 +24,7 @@
24 24 %{
25 25  
26 26 #include <assert.h>
27   -#include <malloc.h>
  27 +#include <stdlib.h>
28 28 #include "genksyms.h"
29 29  
30 30 static int is_typedef;