FS-4119 --resolve

This commit is contained in:
Anthony Minessale 2012-04-17 16:53:25 -05:00
parent 456b07eb8b
commit 395965891e
2 changed files with 11 additions and 1 deletions

View File

@ -1483,8 +1483,14 @@ SWITCH_DECLARE(switch_status_t) switch_thread_exit(switch_thread_t *thd, switch_
*/
SWITCH_DECLARE(switch_status_t) switch_thread_join(switch_status_t *retval, switch_thread_t *thd);
/** @} */
/**
* Return a human readable string describing the specified error.
* @param statcode The error code the get a string for.
* @param buf A buffer to hold the error string.
* @bufsize Size of the buffer to hold the string.
*/
SWITCH_DECLARE(char *) switch_strerror(switch_status_t statcode, char *buf, switch_size_t bufsize);

View File

@ -1223,6 +1223,10 @@ SWITCH_DECLARE(int) switch_atomic_dec(volatile switch_atomic_t *mem)
#endif
}
SWITCH_DECLARE(char *) switch_strerror(switch_status_t statcode, char *buf, switch_size_t bufsize)
{
return apr_strerror(statcode, buf, bufsize);
}
/* For Emacs:
* Local Variables: