diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-02-23 04:07:35 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-02-23 04:07:35 +0000 |
commit | da1dad220867bd8ba8b9868aedcaa0b584e9659d (patch) | |
tree | 419b5afe0d157e33fb154a23e4023a4e055fa8a9 /Build/source/texk/psutils/psutils-PATCHES/patch-01-bug-fix | |
parent | 858b385656f9bfa17a145904df46aac35e6cba3e (diff) |
texk/psutils: New convention
git-svn-id: svn://tug.org/texlive/trunk@39834 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/psutils/psutils-PATCHES/patch-01-bug-fix')
-rw-r--r-- | Build/source/texk/psutils/psutils-PATCHES/patch-01-bug-fix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Build/source/texk/psutils/psutils-PATCHES/patch-01-bug-fix b/Build/source/texk/psutils/psutils-PATCHES/patch-01-bug-fix new file mode 100644 index 00000000000..4786ca5fb8f --- /dev/null +++ b/Build/source/texk/psutils/psutils-PATCHES/patch-01-bug-fix @@ -0,0 +1,26 @@ +diff -ur psutils-1.23.orig/psutil.c psutils-1.23/psutil.c +--- psutils-1.23.orig/psutil.c 2014-01-15 20:08:26.000000000 +0100 ++++ psutils-1.23/psutil.c 2014-01-16 08:56:23.000000000 +0100 +@@ -18,12 +18,12 @@ + #include <sys/stat.h> + #include <stdio.h> + ++#include "progname.h" + #include "xvasprintf.h" + #include "verror.h" + + #define iscomment(x,y) (strncmp(x,y,strlen(y)) == 0) + +-char *program; + int pages; + int verbose; + FILE *infile; +@@ -44,7 +44,7 @@ + + _Noreturn void usage(void) + { +- fprintf(stderr, "%s %s\n%sUsage: %s %s", program, PACKAGE_VERSION, COPYRIGHT_STRING, program, syntax); ++ fprintf(stderr, "%s %s\n%sUsage: %s %s", program_name, PACKAGE_VERSION, COPYRIGHT_STRING, program_name, syntax); + exit(1); + } + |