scripts/genksyms: fix header usage
authorArnaud Lacombe <lacombar@gmail.com>
Mon, 8 Nov 2010 23:31:53 +0000 (18:31 -0500)
committerMichal Marek <mmarek@suse.cz>
Thu, 25 Nov 2010 15:25:06 +0000 (16:25 +0100)
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>
scripts/genksyms/parse.c_shipped
scripts/genksyms/parse.y

index eaee44e..809b949 100644 (file)
 
 
 #include <assert.h>
-#include <malloc.h>
+#include <stdlib.h>
 #include "genksyms.h"
 
 static int is_typedef;
index 10d7dc7..09a265c 100644 (file)
@@ -24,7 +24,7 @@
 %{
 
 #include <assert.h>
-#include <malloc.h>
+#include <stdlib.h>
 #include "genksyms.h"
 
 static int is_typedef;