diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-09-27 08:15:20 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-09-27 08:15:20 +0000 |
commit | dd28274b7848627c20d7bb8de89aed26609ee17b (patch) | |
tree | db1c4faa23576ec05f8643ff9df8ff6366004ab7 /rmt | |
parent | 3ad854caf7f9f61d57d15d8e211f507a5936f8e4 (diff) | |
download | paxutils-dd28274b7848627c20d7bb8de89aed26609ee17b.tar.gz |
Use program_invocation_name instead of program_name.
Diffstat (limited to 'rmt')
-rw-r--r-- | rmt/rmt.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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; |