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 eaee44e66a43cba6686775dbd7ce628a2836d1d1..809b949e495b58267a180c31688ffd926e0adb49 100644 (file)
 
 
 #include <assert.h>
-#include <malloc.h>
+#include <stdlib.h>
 #include "genksyms.h"
 
 static int is_typedef;
index 10d7dc724b6d692a3ea283c4e0756798b03f73d6..09a265cd71939cba93839a53ba3b5ebf23574254 100644 (file)
@@ -24,7 +24,7 @@
 %{
 
 #include <assert.h>
-#include <malloc.h>
+#include <stdlib.h>
 #include "genksyms.h"
 
 static int is_typedef;