lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 389e808c60865e66061328448e26fe8bc60c4605
parent 450465c4d4c765ef83e6b27d5e8d8591db55ef00
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Fri,  1 Nov 1996 15:54:21 -0200

although an ANSI function, some systems do not offer "strerror"

Diffstat:
Miolib.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

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