summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/errmsg.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/win32unix/errmsg.c')
-rw-r--r--otherlibs/win32unix/errmsg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/otherlibs/win32unix/errmsg.c b/otherlibs/win32unix/errmsg.c
index f1246ab82..20a8c8d58 100644
--- a/otherlibs/win32unix/errmsg.c
+++ b/otherlibs/win32unix/errmsg.c
@@ -13,6 +13,7 @@
/* $Id$ */
+#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <mlvalues.h>
@@ -37,6 +38,7 @@ CAMLprim value unix_error_message(value err)
sizeof(buffer),
NULL))
return copy_string(buffer);
- return copy_string("unknown error");
+ sprintf(buffer, "unknown error #%d", errnum);
+ return copy_string(buffer);
}