although an ANSI function, some systems do not offer "strerror"
This commit is contained in:
4
iolib.c
4
iolib.c
@@ -28,7 +28,11 @@ static void pushresult (int i)
|
|||||||
lua_pushuserdata(NULL);
|
lua_pushuserdata(NULL);
|
||||||
else {
|
else {
|
||||||
lua_pushnil();
|
lua_pushnil();
|
||||||
|
#ifndef NOSTRERROR
|
||||||
lua_pushstring(strerror(errno));
|
lua_pushstring(strerror(errno));
|
||||||
|
#else
|
||||||
|
lua_pushstring("system unable to define the error");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user