From: Stefan Metzmacher Date: Thu, 15 Nov 2018 18:53:41 +0000 (+0100) Subject: s4:heimdal_build: make use of libreplace getprogname() replacement X-Git-Tag: tdb-1.3.17~740 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dc06aaa2d6ceff494045034235aaf1c99252cf1;p=thirdparty%2Fsamba.git s4:heimdal_build: make use of libreplace getprogname() replacement Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- 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 */