Commit aae807c0 by Richard Kenner

(my_strerror): If HAVE_STRERROR defined, call strerror.

From-SVN: r8239
parent e19571db
...@@ -305,8 +305,13 @@ char * ...@@ -305,8 +305,13 @@ char *
my_strerror (e) my_strerror (e)
int e; int e;
{ {
static char buffer[30];
#ifdef HAVE_STRERROR
return strerror (e);
#else
static char buffer[30];
if (!e) if (!e)
return ""; return "";
...@@ -315,6 +320,7 @@ my_strerror (e) ...@@ -315,6 +320,7 @@ my_strerror (e)
sprintf (buffer, "Unknown error %d", e); sprintf (buffer, "Unknown error %d", e);
return buffer; return buffer;
#endif
} }
/* Delete tempfiles and exit function. */ /* Delete tempfiles and exit function. */
......
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