2012-08-18 22:17:40

by Mike Frysinger

[permalink] [raw]
Subject: [PATCH] respect HAVE_MALLOC_H

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

Reported-by: Dmitri Bogomolov <[email protected]>
Signed-off-by: Mike Frysinger <[email protected]>
---
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



2012-08-19 21:57:46

by Theodore Ts'o

[permalink] [raw]
Subject: Re: respect HAVE_MALLOC_H

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 <[email protected]>
> Signed-off-by: Mike Frysinger <[email protected]>

Applied to the maint branch, thanks.

- Ted