From: Christian Brauner Date: Tue, 26 Jun 2018 09:25:37 +0000 (+0200) Subject: log: account for Android's Bionic's strerror_r() X-Git-Tag: lxc-2.0.10~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=182846996b1f2310968cdd8feaa3e9dc71965c10;p=thirdparty%2Flxc.git log: account for Android's Bionic's strerror_r() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/log.h b/src/lxc/log.h index f1cffcef2..6030809f7 100644 --- a/src/lxc/log.h +++ b/src/lxc/log.h @@ -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; \