From 3a7ebd0e940e80b185a9240c093e1fee6795fd5b Mon Sep 17 00:00:00 2001 From: Bjoern Jacke Date: Wed, 21 Feb 2018 01:51:42 -0800 Subject: [PATCH] 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 --- source4/heimdal_build/config.h | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.47.3