From f5836edd37b99010dc1bf226c2e0e519e27d7bf7 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Sun, 4 Oct 2015 00:42:55 +0000 Subject: [PATCH] devel/luabind: unbreak -DNDEBUG on 10+ systems --- devel/luabind/Makefile | 2 +- .../patch-luabind_detail_object__rep.hpp | 21 +++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 devel/luabind/files/patch-luabind_detail_object__rep.hpp diff --git a/devel/luabind/Makefile b/devel/luabind/Makefile index a5e6685384b9..09cfb0a350d2 100644 --- a/devel/luabind/Makefile +++ b/devel/luabind/Makefile @@ -3,7 +3,7 @@ PORTNAME= luabind PORTVERSION= 0.9.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= devel MASTER_SITES= SF diff --git a/devel/luabind/files/patch-luabind_detail_object__rep.hpp b/devel/luabind/files/patch-luabind_detail_object__rep.hpp new file mode 100644 index 000000000000..19f2e4ff3398 --- /dev/null +++ b/devel/luabind/files/patch-luabind_detail_object__rep.hpp @@ -0,0 +1,21 @@ +In file included from luabind/detail/policy.hpp:51:0, + from luabind/detail/convert_to_lua.hpp:28, + from luabind/detail/call_member.hpp:30, + from luabind/wrapper_base.hpp:31, + from luabind/back_reference.hpp:27, + from luabind/class.hpp:93, + from luabind/luabind.hpp:28, +luabind/detail/object_rep.hpp: In member function 'void* luabind::detail::object_rep::allocate(size_t)': +luabind/detail/object_rep.hpp:77:11: error: 'malloc' is not a member of 'std' + return std::malloc(size); + ^ +--- luabind/detail/object_rep.hpp.orig 2010-08-31 13:24:52 UTC ++++ luabind/detail/object_rep.hpp +@@ -24,6 +24,7 @@ + #ifndef LUABIND_OBJECT_REP_HPP_INCLUDED + #define LUABIND_OBJECT_REP_HPP_INCLUDED + ++#include // for -DNDEBUG with libc++ + #include + #include + #include