From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtprelay05.ispgateway.de ([80.67.31.97]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Rwbmy-0002yz-QW for ptxdist@pengutronix.de; Sun, 12 Feb 2012 16:56:52 +0100 Received: from [88.217.121.13] (helo=localhost.localdomain) by smtprelay05.ispgateway.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1Rwbmy-0005uf-CN for ptxdist@pengutronix.de; Sun, 12 Feb 2012 16:56:32 +0100 From: Bernhard Walle Date: Sun, 12 Feb 2012 16:56:28 +0100 Message-Id: <1329062188-26899-3-git-send-email-bernhard@bwalle.de> In-Reply-To: <1329062188-26899-1-git-send-email-bernhard@bwalle.de> References: <1329061495-12043-1-git-send-email-bernhard@bwalle.de> <1329062188-26899-1-git-send-email-bernhard@bwalle.de> Subject: [ptxdist] [PATCH 3/3] Fix build without gettext Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.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 --- 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