From: Bernhard Walle <bernhard@bwalle.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 3/3] Fix build without gettext
Date: Sun, 12 Feb 2012 16:56:28 +0100 [thread overview]
Message-ID: <1329062188-26899-3-git-send-email-bernhard@bwalle.de> (raw)
In-Reply-To: <1329062188-26899-1-git-send-email-bernhard@bwalle.de>
The build system checks for gettext and if it doesn't find it, it uses
empty definitions for _(). However, localedef.c uses gettext() directly
on some places and calls textdomain(). Add two empty definitions in
libintl.h so that no liker errors are generated when linking gettext.
This patch is useful for systems without gettext in the default
installation like Darwin.
Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
---
include/libintl.h | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/include/libintl.h b/include/libintl.h
index 096aa8c..a8d33dd 100644
--- a/include/libintl.h
+++ b/include/libintl.h
@@ -13,3 +13,11 @@
#ifndef _libc_intl_domainname
#define _libc_intl_domainname "libc"
#endif
+
+#ifndef gettext
+#define gettext(X) (X)
+#endif
+
+#ifndef textdomain
+#define textdomain(X)
+#endif
--
1.7.9
--
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2012-02-12 15:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-12 15:44 [ptxdist] localedef: Build fixes for Darwin Bernhard Walle
2012-02-12 15:56 ` [ptxdist] [PATCH 1/3] Darwin: Define __nonnull when it's not defined Bernhard Walle
2012-02-12 15:56 ` [ptxdist] [PATCH 2/3] Re-generate configure Bernhard Walle
2012-02-12 15:56 ` Bernhard Walle [this message]
2012-03-24 12:15 ` [ptxdist] localedef: Build fixes for Darwin Michael Olbrich
2012-04-07 18:30 ` Bernhard Walle
2012-04-07 18:32 ` [ptxdist] [PATCH] argp-fmtstream.h: Force inlining of 'extern inline' functions Bernhard Walle
2012-04-08 8:10 ` [ptxdist] localedef: Build fixes for Darwin Michael Olbrich
2012-04-08 14:32 ` [ptxdist] [PATCH] host-localedef: Fix build with LLVM GCC Bernhard Walle
2012-04-17 9:17 ` Michael Olbrich
2012-04-08 14:42 ` [ptxdist] localedef: Build fixes for Darwin Bernhard Walle
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=1329062188-26899-3-git-send-email-bernhard@bwalle.de \
--to=bernhard@bwalle.de \
--cc=ptxdist@pengutronix.de \
/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