From b19fe1995ac5359b61eb9ff87bf6d800bb904cb8 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 25 May 2011 16:44:50 +1000 Subject: heimdal_build: Don't use heimdal's getprogname() and setprogname() Writing into an __progname variable spooks me, and if we use the local variable, then we duplciate the system one, which fails SYMBOLCHECK Andrew Bartlett --- source4/heimdal_build/replace.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'source4/heimdal_build/replace.c') diff --git a/source4/heimdal_build/replace.c b/source4/heimdal_build/replace.c index 51393f6e68..e6a74f9ba8 100644 --- a/source4/heimdal_build/replace.c +++ b/source4/heimdal_build/replace.c @@ -83,3 +83,20 @@ return -1; } #endif + +#ifndef HAVE_SETPROGNAME + +/* We don't want to use a setprogname reimplementation */ +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 */ -- cgit