Skip to content

Commit

Permalink
scripts/genksyms: fix header usage
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
lacombar authored and michal42 committed Nov 25, 2010
1 parent 8af27e1 commit 01660df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/genksyms/parse.c_shipped
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@


#include <assert.h>
#include <malloc.h>
#include <stdlib.h>
#include "genksyms.h"

static int is_typedef;
Expand Down
2 changes: 1 addition & 1 deletion scripts/genksyms/parse.y
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
%{

#include <assert.h>
#include <malloc.h>
#include <stdlib.h>
#include "genksyms.h"

static int is_typedef;
Expand Down

0 comments on commit 01660df

Please sign in to comment.