Skip to content
Snippets Groups Projects
Commit a9309979 authored by Zhao Zhili's avatar Zhao Zhili Committed by Thomas Guillem
Browse files

android/thread: fix compilation


strerror_r can be GNU-specific on Android.

Signed-off-by: default avatarThomas Guillem <thomas@gllm.fr>
parent b4b5b368
No related branches found
No related tags found
No related merge requests found
Pipeline #10845 passed with stage
in 27 minutes and 12 seconds
......@@ -49,22 +49,7 @@ static void
vlc_thread_fatal_print (const char *action, int error,
const char *function, const char *file, unsigned line)
{
char buf[1000];
const char *msg;
switch (strerror_r (error, buf, sizeof (buf)))
{
case 0:
msg = buf;
break;
case ERANGE: /* should never happen */
msg = "unknown (too big to display)";
break;
default:
msg = "unknown (invalid error number)";
break;
}
const char *msg = vlc_strerror_c(error);
fprintf(stderr, "LibVLC fatal error %s (%d) in thread %lu "
"at %s:%u in %s\n Error message: %s\n",
action, error, vlc_thread_id (), file, line, function, msg);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment