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 */