--- /dev/null
+--- a/pngpriv.h.orig   2017-06-28 18:46:03.000000000 +0000
++++ b/pngpriv.h
+@@ -464,7 +464,7 @@
+    static_cast<type>(static_cast<void*>(value))
+ #  define png_aligncastconst(type, value) \
+    static_cast<type>(static_cast<const void*>(value))
+-#else
++#elif !defined(__ASSEMBLER__)
+ #  define png_voidcast(type, value) (value)
+ #  ifdef _WIN64
+ #     ifdef __GNUC__
 
        $(UNTAR)/libpng-$(PNG_VER).tar.xz
        pushd $(BUILD_TMP)/libpng-$(PNG_VER) && \
                $(PATCH)/libpng-1.26.x-disable-tools.patch && \
+               $(PATCH)/libpng-1.26.30-fix-compile-on-arm.patch && \
                $(CONFIGURE) \
                        --prefix=$(TARGETPREFIX) \
                        --build=$(BUILD) \
 
 LIBDVBSI_GIT=ff57e5
 
 # libpng; reference library for reading and writing PNGs
-PNG_VER=1.6.29
+PNG_VER=1.6.30
 
 # libupnp; portable Universal Plug and Play (UPnP) needed for ushare
 LIBUPNP_VER = 1.6.22