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 } }