log: fail build on ENFORCE_THREAD_SAFETY error

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2018-08-22 13:27:24 +02:00
parent 81c76cff14
commit d6457631f0
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -353,6 +353,8 @@ ATTR_UNUSED static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
(void)strerror_r(errno, errno_buf, sizeof(errno_buf)); \
}
#endif
#elif ENFORCE_THREAD_SAFETY
#error ENFORCE_THREAD_SAFETY was set but cannot be guaranteed
#else
#define lxc_log_strerror_r \
char *ptr = NULL; \