[MacPorts] #71123: aalib fails to build against current ncurses: aacurses.c: error: dereferencing pointer to incomplete type
MacPorts
noreply at macports.org
Sat Oct 19 17:45:01 UTC 2024
#71123: aalib fails to build against current ncurses: aacurses.c: error:
dereferencing pointer to incomplete type
---------------------------+--------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.2
Resolution: | Keywords:
Port: aalib |
---------------------------+--------------------
Comment (by kencu):
chatgpt has an even more elegant fix:
{{{
Example Fix in Code:
In aacurses.c, replace:
*width = stdscr->_maxx + 1;
*height = stdscr->_maxy + 1;
with:
getmaxyx(stdscr, *height, *width);
}}}
--
Ticket URL: <https://trac.macports.org/ticket/71123#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list