ports/multimedia/vlc/files/patch-modules_video__chroma_i420__yuy2.c
Piotr Kubaj f50b14e979 multimedia/vlc: add ALTIVEC option, fix build on powerpc64 elfv2, add USES=localbase
Add ALTIVEC option to enable/disable AltiVec easily when needed.

Fix build with LLVM and AltiVec, altivec.h defines its own bool.

Add USES=localbase.

PR:		240537
Approved by:	linimon (mentor), multimedia (maintainer timeout)
2019-09-30 14:18:36 +00:00

12 lines
318 B
C

--- modules/video_chroma/i420_yuy2.c.orig 2019-09-12 13:09:52 UTC
+++ modules/video_chroma/i420_yuy2.c
@@ -37,7 +37,9 @@
#include <vlc_cpu.h>
#if defined (MODULE_NAME_IS_i420_yuy2_altivec) && defined(HAVE_ALTIVEC_H)
+# undef bool
# include <altivec.h>
+# define bool _Bool
#endif
#include "i420_yuy2.h"