diff mbox

respect HAVE_MALLOC_H

Message ID 1345328261-3004-1-git-send-email-vapier@gentoo.org
State Accepted, archived
Headers show

Commit Message

Mike Frysinger Aug. 18, 2012, 10:17 p.m. UTC
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>
---
 util/symlinks.c |    2 ++
 1 file changed, 2 insertions(+)

Comments

Theodore Ts'o Aug. 19, 2012, 9:57 p.m. UTC | #1
On Sat, Aug 18, 2012 at 12:17:41PM -0000, Mike Frysinger wrote:
> 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>

Applied to the maint branch, thanks.

					- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/util/symlinks.c b/util/symlinks.c
index f3a632a..abb33f8 100644
--- 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>