From: Igor Kulaychuk Date: Fri, 14 Dec 2018 11:56:08 +0000 (+0300) Subject: Fix macro for checking strerror_r() variant X-Git-Tag: submit/tizen/20190828.045909^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f302537c2a2569d064574917d298c3fc940c3ea6;p=sdk%2Ftools%2Fprofctl.git Fix macro for checking strerror_r() variant --- diff --git a/logging.c b/logging.c index e2d190c..ede07e8 100644 --- a/logging.c +++ b/logging.c @@ -156,7 +156,7 @@ static void log_prefixed_system_error(FILE *file, int error_code, const char *pr char buf[1024] = {0}; char *errno_msg; -#if (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE +#if (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! defined(_GNU_SOURCE) int ret = strerror_r(error_code, buf, sizeof(buf)); errno_msg = ret == 0 ? buf : ""; #else