From: Bjoern Jacke Date: Wed, 21 Feb 2018 09:51:42 +0000 (-0800) Subject: heimdal_build: use closefrom from libreplace X-Git-Tag: tevent-0.9.36~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3a7ebd0e940e80b185a9240c093e1fee6795fd5b;p=thirdparty%2Fsamba.git heimdal_build: use closefrom from libreplace this silences a lot of "... has been redefined" compiler warnings on platforms that don't have closefrom Signed-off-by: Bjoern Jacke Reviewed-by: Stefan Metzmacher --- diff --git a/source4/heimdal_build/config.h b/source4/heimdal_build/config.h index a7669227960..160b835b0f3 100644 --- a/source4/heimdal_build/config.h +++ b/source4/heimdal_build/config.h @@ -52,4 +52,9 @@ /* lib/replace provides an XSI Compatable strerror_r so use that */ #define STRERROR_R_PROTO_COMPATIBLE +/* lib/replace provides a closefrom */ +#ifndef HAVE_CLOSEFROM +#define HAVE_CLOSEFROM 1 +#endif + #endif