text-utils/hexsyntax.c: use c.h
PATCH 1/1 text-utils/hexsyntax.c: use c.h
This patch hfixes 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---
--- text-utils/hexsyntax.c | 1 + 1 file changed, 1 insertion(+)
text-utils/hexsyntax.c +1 -0
@@ -45,6 +45,7 @@#include "hexdump.h" #include "nls.h" #include "strutils.h" +#include "c.h" off_t skip;/* bytes to skip */
Signature · 1 line
1.7.10
PATCH v2 1/1 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---
---
since v1:
clearify commit message
text-utils/hexsyntax.c | 1 + 1 file changed, 1 insertion(+)
text-utils/hexsyntax.c +1 -0
@@ -45,6 +45,7 @@#include "hexdump.h" #include "nls.h" #include "strutils.h" +#include "c.h" off_t skip;/* bytes to skip */
Signature · 1 line
1.7.10
Re: [PATCH v2] text-utils/hexsyntax.c: fix for missing program_invocation_short_name
Quoted 2 lines · Andreas Bießmann
text-utils/hexsyntax.c | 1 + 1 file changed, 1 insertion(+)
Applied, thanks.
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com