Some libc do not expose program_invocation_short_name. This patch use the util-linux-ng provided 'c.h' header to circumvent that fact.
Signed-off-by: Andreas Bießmann <[email protected]> --- ...hexsyntax.c-fix-for-missing-program_invoc.patch | 36 ++++++++++++++++++++ patches/util-linux-2.21.2/series | 3 +- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 patches/util-linux-2.21.2/0004-text-utils-hexsyntax.c-fix-for-missing-program_invoc.patch diff --git a/patches/util-linux-2.21.2/0004-text-utils-hexsyntax.c-fix-for-missing-program_invoc.patch b/patches/util-linux-2.21.2/0004-text-utils-hexsyntax.c-fix-for-missing-program_invoc.patch new file mode 100644 index 0000000..51e28d4 --- /dev/null +++ b/patches/util-linux-2.21.2/0004-text-utils-hexsyntax.c-fix-for-missing-program_invoc.patch @@ -0,0 +1,36 @@ +From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= <[email protected]> +Date: Tue, 29 May 2012 09:51:24 +0200 +Subject: [PATCH] text-utils/hexsyntax.c: fix for missing + program_invocation_short_name +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +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 <[email protected]> +--- + text-utils/hexsyntax.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/text-utils/hexsyntax.c b/text-utils/hexsyntax.c +index 5cdd1de..74146c8 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 */ + diff --git a/patches/util-linux-2.21.2/series b/patches/util-linux-2.21.2/series index 4f56478..9718184 100644 --- a/patches/util-linux-2.21.2/series +++ b/patches/util-linux-2.21.2/series @@ -3,4 +3,5 @@ 0001-libmount-add-fallbacks-for-old-systems-without-umoun.patch 0002-__progname-redefinition-fix.patch 0003-replace-index-with-strchr.patch -# 5460ef482e2f1fbfb2002773d7074ab5 - git-ptx-patches magic +0004-text-utils-hexsyntax.c-fix-for-missing-program_invoc.patch +# f153341f4051f66cbeedef2bbd15c9cf - git-ptx-patches magic -- 1.7.10 -- ptxdist mailing list [email protected]
