Skip to content

Commit

Permalink
Merge pull request #2433 from brauner/2018-06-26/fix_android
Browse files Browse the repository at this point in the history
log: account for Android's Bionic's strerror_r()
  • Loading branch information
stgraber committed Jun 26, 2018
2 parents 44eff07 + e46fec5 commit 74fd09a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/log.h
Expand Up @@ -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; \
Expand Down

0 comments on commit 74fd09a

Please sign in to comment.