From 59192f5650565d9c6de0194863c6094621be1c93 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Thu, 21 Aug 2003 23:54:20 +0000 Subject: [PATCH] Got rid of a duplicate include for malloc.h and improved the "do we need malloc.h" logic a bit more. (Trying to prevent #warning and #error problems on *BSD systems.) --- rsync.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/rsync.h b/rsync.h index 47943f30..3d10af6d 100644 --- a/rsync.h +++ b/rsync.h @@ -122,10 +122,10 @@ enum logcode {FNONE=0, FERROR=1, FINFO=2, FLOG=3 }; #ifdef HAVE_STDLIB_H #include -#else -#ifdef HAVE_MALLOC_H -#include #endif + +#if defined(HAVE_MALLOC_H) && (defined(HAVE_MALLINFO) || !defined(HAVE_STDLIB_H)) +#include #endif #ifdef HAVE_SYS_SOCKET_H @@ -196,10 +196,6 @@ enum logcode {FNONE=0, FERROR=1, FINFO=2, FLOG=3 }; #include #endif -#ifdef HAVE_MALLOC_H -# include -#endif - /* these are needed for the uid/gid mapping code */ #include #include -- 2.34.1