s4:heimdal_build: make use of libreplace getprogname() replacement
authorStefan Metzmacher <metze@samba.org>
Thu, 15 Nov 2018 18:53:41 +0000 (19:53 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 20 Nov 2018 00:33:33 +0000 (01:33 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/heimdal_build/config.h
source4/heimdal_build/replace.c

index 160b835b0f377416a516b9fe54f0ecc5aeaff49c..85ac3ba4facc2f2c6782bf189f79e46b9cf2952c 100644 (file)
@@ -57,4 +57,9 @@
 #define HAVE_CLOSEFROM 1
 #endif
 
+/* lib/replace provides a getprogname */
+#ifndef HAVE_GETPROGNAME
+#define HAVE_GETPROGNAME 1
+#endif
+
 #endif
index e6a74f9ba8d565b038dc2094651c4108a659c84e..3e43f3fc561341fe76a00e6c91b045d5776d9be2 100644 (file)
@@ -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 */