Browse Source

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

v5-2
Roberto Ierusalimschy 28 years ago
parent
commit
389e808c60
  1. 4
      iolib.c

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

Loading…
Cancel
Save