Commit a5a799d1 by Richard Kenner

(gen_aux_info_file): Use strerror #ifdef HAVE_STRERROR.

From-SVN: r9568
parent 93ae92c1
......@@ -2168,7 +2168,14 @@ gen_aux_info_file (base_filename)
write (f, ": ", 2);
write (f, compile_params[0], strlen (compile_params[0]));
write (f, ": ", 2);
#ifdef HAVE_STRERROR
{
char *p = strerror(e);
write (f, p, strlen (p));
}
#else
write (f, sys_errlist[e], strlen (sys_errlist[e]));
#endif
write (f, "\n", 1);
_exit (1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment