util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] script: fix building with --disable-nls
@ 2011-08-30 11:50 Natanael Copa
  2011-09-07  5:31 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Natanael Copa @ 2011-08-30 11:50 UTC (permalink / raw)
  To: util-linux; +Cc: Natanael Copa

We should only include the libintl.h when NLS is requested.

This fixes issue when building util-linux with uClibc.

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
---
 term-utils/script.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/term-utils/script.c b/term-utils/script.c
index d96ca2f..99748a1 100644
--- a/term-utils/script.c
+++ b/term-utils/script.c
@@ -55,7 +55,9 @@
 #include <getopt.h>
 #include <unistd.h>
 #include <fcntl.h>
+#ifdef ENABLE_NLS
 #include <libintl.h>
+#endif
 #include <limits.h>
 #include <locale.h>
 #include <stddef.h>
-- 
1.7.6.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] script: fix building with --disable-nls
  2011-08-30 11:50 [PATCH] script: fix building with --disable-nls Natanael Copa
@ 2011-09-07  5:31 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2011-09-07  5:31 UTC (permalink / raw)
  To: Natanael Copa; +Cc: util-linux

On Tue, Aug 30, 2011 at 11:50:28AM +0000, Natanael Copa wrote:
>  term-utils/script.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)

 Applied, thanks.

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-07  5:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-30 11:50 [PATCH] script: fix building with --disable-nls Natanael Copa
2011-09-07  5:31 ` Karel Zak

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).