diff --git a/net/rsync/Makefile b/net/rsync/Makefile index 930083f00ca8..b373b1feb482 100644 --- a/net/rsync/Makefile +++ b/net/rsync/Makefile @@ -42,6 +42,8 @@ MAN5= rsyncd.conf.5 pre-configure: @${PERL} -pi.orig -e 's:/etc/:${PREFIX}/etc/:g' \ ${WRKSRC}/rsync.h ${WRKSRC}/rsync.1 ${WRKSRC}/rsyncd.conf.5 + @${PERL} -pi.orig -e 's|malloc.h|stdlib.h|g' \ + ${WRKSRC}/rsync.h ${WRKSRC}/zlib/zutil.h .if defined(WITH_SSH) @${PERL} -pi.orig-rsh -e 's/"rsh"/"ssh"/g' ${WRKSRC}/rsync.h .endif