Skip to contentSkip to conversation

Fix: strerror_r behavior is glibc specific

PATCH New Michael Jeanson 2 participants 3 messages May 30, 2016 – May 31, 2016 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 2/2 Fix: strerror_r behavior is glibc specific

---
 include/babeltrace/compat/string.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/babeltrace/compat/string.h +1 -1
index 7a574e6..6092616 100644
@@ -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
Signature · 6 lines
2.7.4

_______________________________________________
lttng-dev mailing list
[email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

Merged in master and stable-1.4. Thanks!

Jérémie

Quoted 21 lines · Michael Jeanson
---
 include/babeltrace/compat/string.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/babeltrace/compat/string.h +1 -2
index 7a574e6..6092616 100644
@@ -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

Signature · 7 lines
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com
_______________________________________________
lttng-dev mailing list
[email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
#4 lore raw

Re: [PATCH babeltrace 1/2] sys/param.h is required for MAXNAMLEN on musl libc

In reply to a message not in the archive

Merged in master and stable-1.4. Thanks!

Jérémie

Quoted 20 lines · Michael Jeanson
---
 formats/lttng-live/lttng-live.h | 1 +
 1 file changed, 1 insertion(+)
formats/lttng-live/lttng-live.h +1 -1
index e00a51e..b315458 100644
@@ -25,6 +25,7 @@
  */
 
 #include <stdint.h>
+#include <sys/param.h>
 #include "lttng-viewer-abi.h"
 
 #define LTTNG_DEFAULT_NETWORK_VIEWER_PORT      5344
--

2.7.4

Signature · 7 lines
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com
_______________________________________________
lttng-dev mailing list
[email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev