* [PATCH] scripts/genksyms: fix header usage
@ 2010-11-08 23:31 Arnaud Lacombe
2010-11-25 15:27 ` Michal Marek
0 siblings, 1 reply; 2+ messages in thread
From: Arnaud Lacombe @ 2010-11-08 23:31 UTC (permalink / raw)
To: linux-kbuild; +Cc: Michal Marek, Arnaud Lacombe
FreeBSD does not like <malloc.h> when __STDC__ is defined, use the standard
<stdlib.h> instead.
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
---
scripts/genksyms/parse.c_shipped | 2 +-
scripts/genksyms/parse.y | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/genksyms/parse.c_shipped b/scripts/genksyms/parse.c_shipped
index eaee44e..809b949 100644
--- a/scripts/genksyms/parse.c_shipped
+++ b/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;
diff --git a/scripts/genksyms/parse.y b/scripts/genksyms/parse.y
index 10d7dc7..09a265c 100644
--- a/scripts/genksyms/parse.y
+++ b/scripts/genksyms/parse.y
@@ -24,7 +24,7 @@
%{
#include <assert.h>
-#include <malloc.h>
+#include <stdlib.h>
#include "genksyms.h"
static int is_typedef;
--
1.7.2.30.gc37d7.dirty
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] scripts/genksyms: fix header usage
2010-11-08 23:31 [PATCH] scripts/genksyms: fix header usage Arnaud Lacombe
@ 2010-11-25 15:27 ` Michal Marek
0 siblings, 0 replies; 2+ messages in thread
From: Michal Marek @ 2010-11-25 15:27 UTC (permalink / raw)
To: Arnaud Lacombe; +Cc: linux-kbuild
On Mon, Nov 08, 2010 at 06:31:53PM -0500, Arnaud Lacombe wrote:
> FreeBSD does not like <malloc.h> when __STDC__ is defined, use the standard
> <stdlib.h> instead.
>
> Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
> ---
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-25 15:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-08 23:31 [PATCH] scripts/genksyms: fix header usage Arnaud Lacombe
2010-11-25 15:27 ` Michal Marek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox