bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: recent change gives error on compile


From: ant
Subject: Re: recent change gives error on compile
Date: Wed, 12 Jul 2017 13:56:39 -0400
User-agent: slrn/1.0.3 (Linux)

Sven Joachim wrote:
> On 2017-07-12 12:17 -0400, ant wrote:
>
>> Debian testing, curses 6.0+20170708-1
>>
>> ===
>> mdport.c:273:15: error: dereferencing pointer to incomplete type ‘TERMINAL 
>> {aka struct term}’
>>    if (cur_term->type.Strings == NULL)
>>                ^~
>> Makefile:130: recipe for target 'mdport.o' failed
>> ===
>>
>>   fix code or bug in curses?
>
> Fix the application, it's a deliberate change in the 20170318
> patchlevel:
>
> ,----
>| 20170318
>|      + change TERMINAL structure in term.h to make it opaque.  Some
>|        applications misuse its members, e.g., directly modifying it
>|        rather than using def_prog_mode().
> `----
>
>> this is rather ancient code (i haven't seen an
>> error like this ever since i started compiling it).
>
> If you don't have time or skills to change the code, a workaround is to
> #define NCURSES_INTERNALS to regain access to the TERMINAL structure.

  that did the trick for now.  thanks!  :)

  will put it on the TODO list...


  ant




reply via email to

[Prev in Thread] Current Thread [Next in Thread]