]> git.ipfire.org Git - thirdparty/util-linux.git/commit
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)
commit3339f0daab3223fe58c00a26ba461ef00edf3f42
tree49a8623f6d3422c4a4eb717c2400795582709179
parenteecbb2cfeebd01244f07c49f49028089052526f3
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>
text-utils/hexsyntax.c