Bugzilla – Bug 117466
Declaration of acs_map in slang.h clashes with the one from ncurses.h
Last modified: 2005-10-14 09:58:02 UTC
Formerly you could include both ncurses.h and slang.h without problems and projects like libcaca do so. This doesn't work anymore with the acs_map declaration contained in slang-utf8-acs.patch. There two problems here: one is, that slang.h unconditionally defines SLtt_Char_Type as unsigned long, whereas ncurses declares it as 'unsigned int' on LP64 platforms and secondly that slang defines acs_map as extern SLtt_Char_Type SLcurses_Acs_Map [128]; #define acs_map SLcurses_Acs_Map whereas ncurses.h has extern chtype acs_map[]; I propose the the attached patch to fix this.
Created attachment 50167 [details] Patch to fix the declaration of acs_map
i tried to fix slang.h but, libccaca import slang.h before ncuses.h
Simply remove the spurious #define acs_map from slang.h
Slang is now update to 2.04 in STABLE. Tha patch which added acs_map is now dropped.