MinGW runtime 3.15.2 doesn't define ESTALE or ETIMEDOUT
authorJ. Ali Harlow <ali@juiblex.co.uk>
Wed, 24 Aug 2011 14:45:44 +0000 (15:45 +0100)
committerJ. Ali Harlow <ali@juiblex.co.uk>
Wed, 24 Aug 2011 14:45:44 +0000 (15:45 +0100)
librazor/lua.c

index f32e1f5..f5299f1 100644 (file)
@@ -172,10 +172,14 @@ static int proxy_execp(lua_State *L)
                        got_eacces = 1;
                        /* Fall through */
                case ENOENT:
+#ifdef ESTALE
                case ESTALE:
+#endif
                case ENOTDIR:
                case ENODEV:
+#ifdef ETIMEDOUT
                case ETIMEDOUT:
+#endif
                        lua_pop(L, lua_gettop(L) - n);
                        break;
                default: