Skip to contentSkip to conversation

scripts/genksyms: fix header usage

PATCH In review Arnaud Lacombe 2 participants 2 messages Nov 8, 2010 – Nov 25, 2010 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts/genksyms: fix header usage

FreeBSD does not like <malloc.h> when __STDC__ is defined, use the standard <stdlib.h> instead.

---
 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
index eaee44e..809b949 100644
@@ -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
index 10d7dc7..09a265c 100644
@@ -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
#1 lore raw
Quoted 8 lines · Arnaud Lacombe

FreeBSD does not like <malloc.h> when __STDC__ is defined, use the standard <stdlib.h> instead.

---
 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