projects
/
sdk
/
tools
/
profctl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
130c675
)
Fix macro for checking strerror_r() variant
author
Igor Kulaychuk
<i.kulaychuk@samsung.com>
Fri, 14 Dec 2018 11:56:08 +0000
(14:56 +0300)
committer
Igor Kulaychuk
<i.kulaychuk@samsung.com>
Fri, 14 Dec 2018 11:59:21 +0000
(14:59 +0300)
logging.c
patch
|
blob
|
history
diff --git
a/logging.c
b/logging.c
index
e2d190c
..
ede07e8
100644
(file)
--- 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 : "<strerror_r failure>";
#else