[PATCH] respect HAVE_MALLOC_H

Subsystems: the rest

STALE5126d

2 messages, 2 authors, 2012-08-19 · open the first message on its own page

[PATCH] respect HAVE_MALLOC_H

From: Mike Frysinger <hidden>
Date: 2012-08-18 22:17:40

Most places respect this define, but this one doesn't.

Reported-by: Dmitri Bogomolov <redacted>
Signed-off-by: Mike Frysinger <redacted>
---
 util/symlinks.c |    2 ++
 1 file changed, 2 insertions(+)
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>
-- 
1.7.9.7

Re: respect HAVE_MALLOC_H

From: Theodore Ts'o <tytso@mit.edu>
Date: 2012-08-19 21:57:46

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 <redacted>
Signed-off-by: Mike Frysinger <redacted>
Applied to the maint branch, thanks.

					- Ted
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help