summaryrefslogtreecommitdiff
path: root/rmt
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2006-09-27 08:15:20 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2006-09-27 08:15:20 +0000
commitdd28274b7848627c20d7bb8de89aed26609ee17b (patch)
treedb1c4faa23576ec05f8643ff9df8ff6366004ab7 /rmt
parent3ad854caf7f9f61d57d15d8e211f507a5936f8e4 (diff)
downloadpaxutils-dd28274b7848627c20d7bb8de89aed26609ee17b.tar.gz
Use program_invocation_name instead of program_name.
Diffstat (limited to 'rmt')
-rw-r--r--rmt/rmt.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/rmt/rmt.c b/rmt/rmt.c
index 52aec9a..e2fece4 100644
--- a/rmt/rmt.c
+++ b/rmt/rmt.c
@@ -55,8 +55,11 @@
It must hold enough for any integer, possibly with a sign. */
#define STRING_SIZE (UINTMAX_STRSIZE_BOUND + 1)
-/* Name of executing program. */
-const char *program_name;
+#ifdef HAVE_DECL_PROGRAM_INVOCATION_NAME
+# define program_name program_invocation_name
+#else
+extern char *program_name;
+#endif
/* File descriptor of the tape device, or negative if none open. */
static int tape = -1;