0002-Fix-build-on-powerpc64-altivec.patch 682 B

12345678910111213141516171819202122232425262728
  1. Subject: [PATCH] Work around bool type redefinition by altivec
  2. On powerpc64le, the SDL header from SDL2 may include altivec.h and this
  3. (combined with -std=c99) will cause a compile failure due to bool being
  4. redefined as a vector type.
  5. Re-include stdbool.h after SDL.h to restore the normal bool type.
  6. Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
  7. ---
  8. audio/out/ao_sdl.c | 1 +
  9. 1 file changed, 1 insertion(+)
  10. diff --git a/audio/out/ao_sdl.c b/audio/out/ao_sdl.c
  11. index d9d0062..0cb80d6 100644
  12. --- a/audio/out/ao_sdl.c
  13. +++ b/audio/out/ao_sdl.c
  14. @@ -29,6 +29,7 @@
  15. #include "osdep/timer.h"
  16. #include <SDL.h>
  17. +#include <stdbool.h>
  18. struct priv
  19. {
  20. --
  21. 2.10.0.297.gf6727b0