From f2502cf84f710989fa2b0d459a6c4f322d737b67 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Fri, 9 Dec 2005 12:31:14 +0000 Subject: [PATCH] Define program_invocation_name and program_invocation_short_name on systems that lack them. --- lib/argp-pin.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 lib/argp-pin.c diff --git a/lib/argp-pin.c b/lib/argp-pin.c new file mode 100644 index 0000000000..852c6d6d93 --- /dev/null +++ b/lib/argp-pin.c @@ -0,0 +1,28 @@ +/* Full and short program names for argp module + Copyright (C) 2005 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#ifndef HAVE_PROGRAM_INVOCATION_SHORT_NAME +char *program_invocation_short_name = 0; +#endif +#ifndef HAVE_PROGRAM_INVOCATION_NAME +char *program_invocation_name = 0; +#endif + -- 2.30.2