alsa-utils-1.0.18-acs_map.patch.arm 1.1 KB

1234567891011121314151617181920212223242526272829
  1. When configuring alsa-utils, it will use the hosts <ncurses.h>
  2. See: alsa-utils <VERSION> / alsamixer/.deps/alsamicer.Po
  3. This will, on OpenSuSE 11.0, and possibly other distributions
  4. result in that the preprocessor directive:
  5. #define acs_map _nc_acs_map
  6. which is present in the Buildroot build of ncurses,
  7. is not executed, and the
  8. extern <chartype> acs_map[];
  9. declaration in the host ncurses will
  10. result in an undefined symbol: acs_map.
  11. This patches give up trying to force alsa-utils to use the correct
  12. ncurses, and just defines a byte with the needed symbol.
  13. diff -urN alsa-utils-1.0.18-0rig//alsamixer/alsamixer.c alsa-utils-1.0.18/alsamixer/alsamixer.c
  14. --- alsa-utils-1.0.18-0rig//alsamixer/alsamixer.c 2008-10-29 13:42:11.000000000 +0100
  15. +++ alsa-utils-1.0.18/alsamixer/alsamixer.c 2009-01-22 23:35:29.000000000 +0100
  16. @@ -115,6 +115,10 @@
  17. #include <sys/time.h>
  18. #include <locale.h>
  19. +/* Ugly hack to get rid of undefined "acs_map" */
  20. +/* This is caused by configure using host ncurses.h */
  21. +/* instead of buildroot's ncurses.h */
  22. +unsigned long acs_map[1];
  23. #ifndef CURSESINC
  24. #include <ncurses.h>