aboutsummaryrefslogtreecommitdiff
path: root/lib/ldap.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-07-11 21:34:23 +0000
committerYang Tse <yangsita@gmail.com>2006-07-11 21:34:23 +0000
commitfe22872d14c3b6b63ac27a9017ed9695ac3b932b (patch)
tree13371b16e69390845b8227c183cfae2ba5b29f56 /lib/ldap.c
parent4d95d23d99a35a098cdc17f91b36d41dab98a30c (diff)
include <malloc.h> only if HAVE_MALLOC_H and NEED_MALLOC_H are both defined.
Diffstat (limited to 'lib/ldap.c')
-rw-r--r--lib/ldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ldap.c b/lib/ldap.c
index 558d6f40f..dc62c81e9 100644
--- a/lib/ldap.c
+++ b/lib/ldap.c
@@ -36,7 +36,7 @@
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
-#ifdef HAVE_MALLOC_H
+#if defined(HAVE_MALLOC_H) && defined(NEED_MALLOC_H)
#include <malloc.h>
#endif
#include <errno.h>