diff options
| -rw-r--r-- | iolib.c | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -28,7 +28,11 @@ static void pushresult (int i) | |||
| 28 | lua_pushuserdata(NULL); | 28 | lua_pushuserdata(NULL); |
| 29 | else { | 29 | else { |
| 30 | lua_pushnil(); | 30 | lua_pushnil(); |
| 31 | #ifndef NOSTRERROR | ||
| 31 | lua_pushstring(strerror(errno)); | 32 | lua_pushstring(strerror(errno)); |
| 33 | #else | ||
| 34 | lua_pushstring("system unable to define the error"); | ||
| 35 | #endif | ||
| 32 | } | 36 | } |
| 33 | } | 37 | } |
| 34 | 38 | ||
