]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
kodi-texturepacker: fix compilation error with host gcc 7.x
authorDagg Stompler <daggs@gmx.com>
Fri, 19 Jan 2018 16:42:32 +0000 (18:42 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 29 Jan 2018 22:14:24 +0000 (23:14 +0100)
commitceec22f56994a7d7a370a3807cc4a8f07b3749da
treee286bec8a7bad362e231bf8c36dd6f5b46591a41
parent6cf05930ca96f9396ebf8d4878d237138f9d38ee
kodi-texturepacker: fix compilation error with host gcc 7.x

When host-kodi-texturepacker is built on a machine using gcc 7.x, it
fails to build with:

/usr/include/stdlib.h:443:14: error: declaration of ‘void* reallocarray(void*, size_t, size_t) throw ()’ has a different exception specifier
 extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size)

This commit backports the upstream fix for this problem.

The issue could be reproduced with the following defconfig (and a gcc
7.x host compiler):

BR2_x86_64=y
BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_PACKAGE_KODI=y
BR2_PACKAGE_MESA3D=y
BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600=y
BR2_PACKAGE_MESA3D_OPENGL_EGL=y
BR2_PACKAGE_XORG7=y
BR2_PACKAGE_PYTHON=y
BR2_PACKAGE_PYTHON_PY_PYC=y

Signed-off-by: Dagg Stompler <daggs@gmx.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/kodi-texturepacker/0002-fix_reallocarray.patch [new file with mode: 0644]