summaryrefslogtreecommitdiff
path: root/external/libetonyek
diff options
context:
space:
mode:
Diffstat (limited to 'external/libetonyek')
-rw-r--r--external/libetonyek/UnpackedTarball_libetonyek.mk6
-rw-r--r--external/libetonyek/assert.patch20
2 files changed, 26 insertions, 0 deletions
diff --git a/external/libetonyek/UnpackedTarball_libetonyek.mk b/external/libetonyek/UnpackedTarball_libetonyek.mk
index 52e6a9598a26..4853907f7865 100644
--- a/external/libetonyek/UnpackedTarball_libetonyek.mk
+++ b/external/libetonyek/UnpackedTarball_libetonyek.mk
@@ -11,4 +11,10 @@ $(eval $(call gb_UnpackedTarball_UnpackedTarball,libetonyek))
$(eval $(call gb_UnpackedTarball_set_tarball,libetonyek,$(ETONYEK_TARBALL)))
+$(eval $(call gb_UnpackedTarball_set_patchlevel,libetonyek,0))
+
+$(eval $(call gb_UnpackedTarball_add_patches,libetonyek,\
+ external/libetonyek/assert.patch \
+))
+
# vim: set noet sw=4 ts=4:
diff --git a/external/libetonyek/assert.patch b/external/libetonyek/assert.patch
new file mode 100644
index 000000000000..fe5e2823f2a9
--- /dev/null
+++ b/external/libetonyek/assert.patch
@@ -0,0 +1,20 @@
+--- src/lib/EtonyekDocument.cpp
++++ src/lib/EtonyekDocument.cpp
+@@ -7,6 +7,8 @@
+
+ #include <libetonyek/libetonyek.h>
+
++#include <cassert>
++
+ #include <boost/scoped_ptr.hpp>
+ #include <boost/shared_ptr.hpp>
+ #include <boost/logic/tribool.hpp>
+@@ -179,7 +181,7 @@
+ info.input->seek(0, RVNG_SEEK_SET);
+ }
+
+- assert(!isGzipped);
++ assert(bool(!isGzipped));
+
+ return probeXMLImpl(info.input, probe, type, info);
+ }