From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtprelay05.ispgateway.de ([80.67.31.100]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Rwbmx-0002yw-Vx for ptxdist@pengutronix.de; Sun, 12 Feb 2012 16:56:33 +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 1Rwbmx-0005uf-HA for ptxdist@pengutronix.de; Sun, 12 Feb 2012 16:56:31 +0100 From: Bernhard Walle Date: Sun, 12 Feb 2012 16:56:26 +0100 Message-Id: <1329062188-26899-1-git-send-email-bernhard@bwalle.de> In-Reply-To: <1329061495-12043-1-git-send-email-bernhard@bwalle.de> References: <1329061495-12043-1-git-send-email-bernhard@bwalle.de> Subject: [ptxdist] [PATCH 1/3] Darwin: Define __nonnull when it's not defined 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 We could check for gcc here and define __nonnull expanding to the usual __attribute__ stuff. But hey, we're just compiling something on Darwin that has been tested with that macros on other platforms. Make it simple. Signed-off-by: Bernhard Walle --- eglibc/locale/nl_types.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/eglibc/locale/nl_types.h b/eglibc/locale/nl_types.h index c1190b5..15988e1 100644 --- a/eglibc/locale/nl_types.h +++ b/eglibc/locale/nl_types.h @@ -21,6 +21,10 @@ #include +#ifndef __nonnull +# define __nonnull(params) +#endif + /* The default message set used by the gencat program. */ #define NL_SETD 1 -- 1.7.9 -- ptxdist mailing list ptxdist@pengutronix.de