Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: mjeanson@efficios.com (Michael Jeanson)
Subject: [lttng-dev] [PATCH babeltrace 2/2] Fix: strerror_r behavior is glibc specific
Date: Mon, 30 May 2016 16:39:02 -0400	[thread overview]
Message-ID: <1464640742-24658-2-git-send-email-mjeanson@efficios.com> (raw)
In-Reply-To: <1464640742-24658-1-git-send-email-mjeanson@efficios.com>

Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
---
 include/babeltrace/compat/string.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/babeltrace/compat/string.h b/include/babeltrace/compat/string.h
index 7a574e6..6092616 100644
--- a/include/babeltrace/compat/string.h
+++ b/include/babeltrace/compat/string.h
@@ -26,7 +26,7 @@
 #include <string.h>
 #include <stdlib.h>
 
-#if !defined(__linux__) || ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !defined(_GNU_SOURCE))
+#if !defined(__GLIBC__) || ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !defined(_GNU_SOURCE))
 
 /* XSI-compliant strerror_r */
 static inline
-- 
2.7.4



  reply	other threads:[~2016-05-30 20:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-30 20:39 [lttng-dev] [PATCH babeltrace 1/2] sys/param.h is required for MAXNAMLEN on musl libc Michael Jeanson
2016-05-30 20:39 ` Michael Jeanson [this message]
2016-05-31  5:53   ` [lttng-dev] [PATCH babeltrace 2/2] Fix: strerror_r behavior is glibc specific Jérémie Galarneau
2016-05-31  5:53 ` [lttng-dev] [PATCH babeltrace 1/2] sys/param.h is required for MAXNAMLEN on musl libc Jérémie Galarneau

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=1464640742-24658-2-git-send-email-mjeanson@efficios.com \
    --to=mjeanson@efficios.com \
    /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