From 183080294bf182889865edddcb4bb95f75987f29 Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Fri, 8 Nov 2013 17:18:45 -0800 Subject: [PATCH] fix(cmake/Modules/CheckLuaNewstate.cc): compilation problem on cygwin Signed-off-by: Leonardo de Moura --- src/cmake/Modules/CheckLuaNewstate.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cmake/Modules/CheckLuaNewstate.cc b/src/cmake/Modules/CheckLuaNewstate.cc index c9884bd72..784c2714f 100644 --- a/src/cmake/Modules/CheckLuaNewstate.cc +++ b/src/cmake/Modules/CheckLuaNewstate.cc @@ -6,6 +6,7 @@ Author: Leonardo de Moura */ #include #include +#include #include static void * lua_realloc(void *, void * q, size_t, size_t sz) { return realloc(q, sz); } @@ -13,7 +14,7 @@ static void * lua_realloc(void *, void * q, size_t, size_t sz) { return realloc( // Little program for checking whether lua_newstate is available int main() { lua_State * L; - L = lua_newstate(lua_realloc, nullptr); + L = lua_newstate(lua_realloc, 0); lua_close(L); return 0; }