فهرست منبع

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>
Arnaud Lacombe 14 سال پیش
والد
کامیت
01660dfc37
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      scripts/genksyms/parse.c_shipped
  2. 1 1
      scripts/genksyms/parse.y

+ 1 - 1
scripts/genksyms/parse.c_shipped

@@ -160,7 +160,7 @@
 
 
 #include <assert.h>
-#include <malloc.h>
+#include <stdlib.h>
 #include "genksyms.h"
 
 static int is_typedef;

+ 1 - 1
scripts/genksyms/parse.y

@@ -24,7 +24,7 @@
 %{
 
 #include <assert.h>
-#include <malloc.h>
+#include <stdlib.h>
 #include "genksyms.h"
 
 static int is_typedef;