]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
text-utils/hexsyntax.c: fix for missing program_invocation_short_name
authorAndreas Bießmann <biessmann@corscience.de>
Mon, 4 Jun 2012 11:01:09 +0000 (13:01 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 5 Jun 2012 12:31:13 +0000 (14:31 +0200)
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 <biessmann@corscience.de>
text-utils/hexsyntax.c

index 5f3b7338c3a8413e0d1a249aadf75d48dba9b5b6..21cc55ef076765949d10ba8517d920f6ce488e98 100644 (file)
@@ -45,6 +45,7 @@
 #include "hexdump.h"
 #include "nls.h"
 #include "strutils.h"
+#include "c.h"
 
 off_t skip;                            /* bytes to skip */