From: Bernhard Walle <bernhard@bwalle.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 1/3] Darwin: Define __nonnull when it's not defined
Date: Sun, 12 Feb 2012 16:56:26 +0100 [thread overview]
Message-ID: <1329062188-26899-1-git-send-email-bernhard@bwalle.de> (raw)
In-Reply-To: <1329061495-12043-1-git-send-email-bernhard@bwalle.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 <bernhard@bwalle.de>
---
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 <features.h>
+#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
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 ` Bernhard Walle [this message]
2012-02-12 15:56 ` [ptxdist] [PATCH 2/3] Re-generate configure Bernhard Walle
2012-02-12 15:56 ` [ptxdist] [PATCH 3/3] Fix build without gettext Bernhard Walle
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-1-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