summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/errmsg.c
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1996-02-13 16:28:24 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1996-02-13 16:28:24 +0000
commite46d62c5971e9b4868ee43d48324a16f2e4ecbfa (patch)
treeb0d4161035df2b1e2bddd46958bae0f9f5da19aa /otherlibs/unix/errmsg.c
parente2ae1522050554d0472e6aede801bcc1f0e22ff5 (diff)
Makefile: nouveau systeme d'autoconfiguration.
errmsg.c: bug dans la declaration de strerror. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@629 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/unix/errmsg.c')
-rw-r--r--otherlibs/unix/errmsg.c4
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