summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/unix')
-rw-r--r--otherlibs/unix/Makefile2
-rw-r--r--otherlibs/unix/errmsg.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/otherlibs/unix/Makefile b/otherlibs/unix/Makefile
index 7a389c590..907d80a68 100644
--- a/otherlibs/unix/Makefile
+++ b/otherlibs/unix/Makefile
@@ -1,6 +1,6 @@
# Makefile for the Unix interface library
-include ../../Makefile.config
+include ../../config/Makefile
# Compilation options
CC=$(BYTECC)
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