heimdal_build: use closefrom from libreplace
authorBjoern Jacke <bjacke@samba.org>
Wed, 21 Feb 2018 09:51:42 +0000 (01:51 -0800)
committerRalph Boehme <slow@samba.org>
Wed, 21 Feb 2018 13:19:19 +0000 (14:19 +0100)
this silences a lot of "... has been redefined" compiler warnings on
platforms that don't have closefrom

Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/heimdal_build/config.h

index a7669227960f4e1245bca193f23b95ca24246d03..160b835b0f377416a516b9fe54f0ecc5aeaff49c 100644 (file)
@@ -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