From 389e808c60865e66061328448e26fe8bc60c4605 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 1 Nov 1996 15:54:41 -0200 Subject: although an ANSI function, some systems do not offer "strerror" --- iolib.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/iolib.c b/iolib.c index eeeb43c4..70a4074f 100644 --- a/iolib.c +++ b/iolib.c @@ -28,7 +28,11 @@ static void pushresult (int i) lua_pushuserdata(NULL); else { lua_pushnil(); +#ifndef NOSTRERROR lua_pushstring(strerror(errno)); +#else + lua_pushstring("system unable to define the error"); +#endif } } -- cgit v1.2.3-55-g6feb