From e46fec5c7fe47962d84343da20e25e1229141333 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Tue, 26 Jun 2018 11:25:37 +0200 Subject: [PATCH] log: account for Android's Bionic's strerror_r() Signed-off-by: Christian Brauner --- src/lxc/log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/log.h b/src/lxc/log.h index e183a3a79..cfbfd0cf4 100644 --- a/src/lxc/log.h +++ b/src/lxc/log.h @@ -295,7 +295,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; \ -- 2.47.2