util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Andreas Bießmann" <biessmann@corscience.de>
To: util-linux@vger.kernel.org
Cc: "Andreas Bießmann" <biessmann@corscience.de>
Subject: [PATCH v2] text-utils/hexsyntax.c: fix for missing program_invocation_short_name
Date: Mon,  4 Jun 2012 13:01:09 +0200	[thread overview]
Message-ID: <1338807669-32204-1-git-send-email-biessmann@corscience.de> (raw)
In-Reply-To: <1338277884-29779-1-git-send-email-biessmann@corscience.de>

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>
---
since v1:
 clearify commit message

 text-utils/hexsyntax.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/text-utils/hexsyntax.c b/text-utils/hexsyntax.c
index 5f3b733..21cc55e 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 */
 
-- 
1.7.10


  reply	other threads:[~2012-06-04 11:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-29  7:51 [PATCH] text-utils/hexsyntax.c: use c.h Andreas Bießmann
2012-06-04 11:01 ` Andreas Bießmann [this message]
2012-06-05 12:32   ` [PATCH v2] text-utils/hexsyntax.c: fix for missing program_invocation_short_name Karel Zak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1338807669-32204-1-git-send-email-biessmann@corscience.de \
    --to=biessmann@corscience.de \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).