[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: recent change gives error on compile
From: |
Sven Joachim |
Subject: |
Re: recent change gives error on compile |
Date: |
Wed, 12 Jul 2017 18:32:01 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
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.
Cheers,
Sven