diff options
Diffstat (limited to 'otherlibs/unix/errmsg.c')
-rw-r--r-- | otherlibs/unix/errmsg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/otherlibs/unix/errmsg.c b/otherlibs/unix/errmsg.c index 3e663f6d2..c3586ecb0 100644 --- a/otherlibs/unix/errmsg.c +++ b/otherlibs/unix/errmsg.c @@ -19,14 +19,14 @@ extern int error_table[]; #ifdef HAS_STRERROR -#include <string.h> +extern char * strerror(); value unix_error_message(err) value err; { int errnum; errnum = error_table[Int_val(err)]; - return copy_string(strerror(errno)); + return copy_string(strerror(errnum)); } #else |