summaryrefslogtreecommitdiff
path: root/src/system.h
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-06-03 08:34:09 +0200
committerJim Meyering <meyering@redhat.com>2008-06-03 09:15:00 +0200
commit896b672499d6a31a6caf85411bcbdde6edc57668 (patch)
tree27683a9e32614e6ea09de5e06d7967164593bbd7 /src/system.h
parent1b0b6c8d08785bf9b05931371259ac710a806e51 (diff)
downloadcoreutils-896b672499d6a31a6caf85411bcbdde6edc57668.tar.xz
use gnulib's progname module
* bootstrap.conf (gnulib_modules): Add progname. * src/*.c (program_name): Remove declaration. * (main): Call set_program_name rather than setting program_name. * src/nice.c (main): Cast program_name to "(char *)". * src/prog-fprintf.c: Include "system.h" * src/system.h: Include "progname.h". * maint.mk (sc_program_name): Adjust rule. Suggestion from Eric Blake.
Diffstat (limited to 'src/system.h')
-rw-r--r--src/system.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/system.h b/src/system.h
index f7c689f8e..c69ddca34 100644
--- a/src/system.h
+++ b/src/system.h
@@ -462,6 +462,8 @@ enum
of the 100 binaries. */
#define proper_name(x) (x)
+#include "progname.h"
+
#define case_GETOPT_VERSION_CHAR(Program_name, Authors) \
case GETOPT_VERSION_CHAR: \
version_etc (stdout, Program_name, PACKAGE_NAME, VERSION, Authors, \