Whamcloud - gitweb
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 f3a632a..abb33f8 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>