Date: Wed, 29 Apr 2015 13:53:26 +0000 (UTC) From: Jan Beich <jbeich@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r384977 - head/devel/onscripter Message-ID: <201504291353.t3TDrQu4017865@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jbeich Date: Wed Apr 29 13:53:26 2015 New Revision: 384977 URL: https://svnweb.freebsd.org/changeset/ports/384977 Log: devel/onscripter: unbreak build against lang/lua53 LUAHandler.cpp:207:15: error: use of undeclared identifier 'luaL_checkint'; did you mean 'luaL_checkany'? int no = luaL_checkint( state, 1 ); ^~~~~~~~~~~~~ luaL_checkany /usr/local/include/lua53/lauxlib.h:52:18: note: 'luaL_checkany' declared here LUALIB_API void (luaL_checkany) (lua_State *L, int arg); ^ LUAHandler.cpp:207:9: error: cannot initialize a variable of type 'int' with an rvalue of type 'void' int no = luaL_checkint( state, 1 ); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ Modified: head/devel/onscripter/Makefile Modified: head/devel/onscripter/Makefile ============================================================================== --- head/devel/onscripter/Makefile Wed Apr 29 13:53:09 2015 (r384976) +++ head/devel/onscripter/Makefile Wed Apr 29 13:53:26 2015 (r384977) @@ -46,6 +46,8 @@ post-patch: .endif @${REINPLACE_CMD} -e 's/$$(LIBS)/$$(LDFLAGS) &/' \ ${WRKSRC}/Makefile.onscripter + @${REINPLACE_CMD} -e 's/luaL_checkint/(int)&eger/' \ + ${WRKSRC}/LUAHandler.cpp .if !target(do-install) do-install:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504291353.t3TDrQu4017865>