]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
log: account for Android's Bionic's strerror_r()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 26 Jun 2018 09:25:37 +0000 (11:25 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 10 Dec 2018 13:34:22 +0000 (14:34 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/log.h

index f1cffcef2b4218444b09e9b52e56c1d3e9f1a74b..6030809f736030d3e9f4a387e7e3b7ab37c37a40 100644 (file)
@@ -276,7 +276,7 @@ ATTR_UNUSED static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
 /*
  * Helper macro to define errno string.
  */
-#if (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !defined(_GNU_SOURCE)
+#if (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !defined(_GNU_SOURCE) || IS_BIONIC
 #define lxc_log_strerror_r                                               \
        char errno_buf[MAXPATHLEN / 2] = {"Failed to get errno string"}; \
        char *ptr = errno_buf;                                           \