diff options
author | Andreas Bießmann | 2012-06-04 13:01:09 +0200 |
---|---|---|
committer | Karel Zak | 2012-06-05 14:31:13 +0200 |
commit | 3339f0daab3223fe58c00a26ba461ef00edf3f42 (patch) | |
tree | 49a8623f6d3422c4a4eb717c2400795582709179 /text-utils | |
parent | more: fix regex error messages printing (diff) | |
download | kernel-qcow2-util-linux-3339f0daab3223fe58c00a26ba461ef00edf3f42.tar.gz kernel-qcow2-util-linux-3339f0daab3223fe58c00a26ba461ef00edf3f42.tar.xz kernel-qcow2-util-linux-3339f0daab3223fe58c00a26ba461ef00edf3f42.zip |
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 <biessmann@corscience.de>
Diffstat (limited to 'text-utils')
-rw-r--r-- | text-utils/hexsyntax.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/text-utils/hexsyntax.c b/text-utils/hexsyntax.c index 5f3b7338c..21cc55ef0 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 */ |