Skip to content
Snippets Groups Projects
Commit 21f76ed9 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

minor bugfix in perror()

Rev: lib/include/stdio.pre.pike:1.6
parent 1a068bf0
No related branches found
No related tags found
No related merge requests found
......@@ -199,9 +199,9 @@ int file_size(string s)
void perror(string s)
{
#if efun(strerror)
stderr->write(s+": "+strerror(errno())+"\n");
stderr->write(s+": "+strerror(predef::errno())+"\n");
#else
stderr->write(s+": errno: "+errno()+"\n");
stderr->write(s+": errno: "+predef::errno()+"\n");
#endif
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment