heimdal_build: Don't use heimdal's getprogname() and setprogname()
[gd/samba-autobuild/.git] / source4 / heimdal_build / replace.c
index 51393f6e6878d51c4b4f61314acac4dd1da86787..e6a74f9ba8d565b038dc2094651c4108a659c84e 100644 (file)
        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 */