Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84461ea
)
util: respect HAVE_MALLOC_H
author
Mike Frysinger
<vapier@gentoo.org>
Sat, 18 Aug 2012 12:17:41 +0000
(12:17 +0000)
committer
Theodore Ts'o
<tytso@mit.edu>
Sun, 19 Aug 2012 21:57:17 +0000
(17:57 -0400)
Most places respect this define, but this one doesn't.
Reported-by: Dmitri Bogomolov <4glitch@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
util/symlinks.c
patch
|
blob
|
history
diff --git
a/util/symlinks.c
b/util/symlinks.c
index
f3a632a
..
abb33f8
100644
(file)
--- a/
util/symlinks.c
+++ b/
util/symlinks.c
@@
-8,7
+8,9
@@
#endif
#include <stdio.h>
#include <stdlib.h>
+#ifdef HAVE_MALLOC_H
#include <malloc.h>
+#endif
#include <string.h>
#include <fcntl.h>
#include <sys/param.h>