From: Andreas Bießmann Date: Mon, 4 Jun 2012 11:01:09 +0000 (+0200) Subject: text-utils/hexsyntax.c: fix for missing program_invocation_short_name X-Git-Tag: v2.22-rc1~332 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3339f0daab3223fe58c00a26ba461ef00edf3f42;p=thirdparty%2Futil-linux.git text-utils/hexsyntax.c: fix for missing program_invocation_short_name Some libc do not expose program_invocation_short_name. Therefore util-linux comes with helpers in 'c.h'. Use the 'c.h' in hexsyntax.c where it was missed. This patch fixes following error for me: ---8<--- hexsyntax.c: In function 'newsyntax': hexsyntax.c:115: error: 'program_invocation_short_name' undeclared (first use in this function) hexsyntax.c:115: error: (Each undeclared identifier is reported only once hexsyntax.c:115: error: for each function it appears in.) --->8--- Signed-off-by: Andreas Bießmann --- diff --git a/text-utils/hexsyntax.c b/text-utils/hexsyntax.c index 5f3b7338c3..21cc55ef07 100644 --- a/text-utils/hexsyntax.c +++ b/text-utils/hexsyntax.c @@ -45,6 +45,7 @@ #include "hexdump.h" #include "nls.h" #include "strutils.h" +#include "c.h" off_t skip; /* bytes to skip */