X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/38b02c13d0173fc4a1ee67d67ceefc7107eefdc0..ea42541fe0783d3b3e8f44c76cbdfd82550a9c68:/rsync.h 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