From 1dc06aaa2d6ceff494045034235aaf1c99252cf1 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 15 Nov 2018 19:53:41 +0100 Subject: [PATCH] s4:heimdal_build: make use of libreplace getprogname() replacement Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source4/heimdal_build/config.h | 5 +++++ source4/heimdal_build/replace.c | 8 -------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/source4/heimdal_build/config.h b/source4/heimdal_build/config.h index 160b835b0f3..85ac3ba4fac 100644 --- a/source4/heimdal_build/config.h +++ b/source4/heimdal_build/config.h @@ -57,4 +57,9 @@ #define HAVE_CLOSEFROM 1 #endif +/* lib/replace provides a getprogname */ +#ifndef HAVE_GETPROGNAME +#define HAVE_GETPROGNAME 1 +#endif + #endif diff --git a/source4/heimdal_build/replace.c b/source4/heimdal_build/replace.c index e6a74f9ba8d..3e43f3fc561 100644 --- a/source4/heimdal_build/replace.c +++ b/source4/heimdal_build/replace.c @@ -92,11 +92,3 @@ void setprogname(const char *argv0) } #endif /* HAVE_SETPROGNAME */ - -#ifndef HAVE_GETPROGNAME -/* We don't want to use a getprogname reimplementation */ -const char *getprogname(void) -{ - return ""; -} -#endif /* HAVE_GETPROGNAME */ -- 2.34.1