]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
util: respect HAVE_MALLOC_H
authorMike Frysinger <vapier@gentoo.org>
Sat, 18 Aug 2012 12:17:41 +0000 (12:17 +0000)
committerTheodore 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

index f3a632af57b41d990d56ff921dfd2c31013f83f6..abb33f8b230b3e86689d8ac9691525ca0f199bd9 100644 (file)
@@ -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>