summaryrefslogtreecommitdiff
path: root/source4/heimdal_build/replace.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-05-25 16:44:50 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-05-31 00:32:07 +0200
commitb19fe1995ac5359b61eb9ff87bf6d800bb904cb8 (patch)
tree23b1a2c4ff39cf7418f63a706d97ee3d79ff5353 /source4/heimdal_build/replace.c
parent33e8126c3c810388d079008d6de8291a294b9bd8 (diff)
downloadsamba-b19fe1995ac5359b61eb9ff87bf6d800bb904cb8.tar.gz
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
Diffstat (limited to 'source4/heimdal_build/replace.c')
-rw-r--r--source4/heimdal_build/replace.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/source4/heimdal_build/replace.c b/source4/heimdal_build/replace.c
index 51393f6e687..e6a74f9ba8d 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 */