[MacPorts] #59992: ncurses at 6.1 : /opt/local/include/unctrl.h:60:63: error: unknown type name 'SCREEN'

MacPorts noreply at macports.org
Tue Mar 28 05:43:40 UTC 2023


#59992: ncurses at 6.1 : /opt/local/include/unctrl.h:60:63: error: unknown type name
'SCREEN'
----------------------+----------------------
  Reporter:  kencu    |      Owner:  jmroot
      Type:  defect   |     Status:  assigned
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:
Resolution:           |   Keywords:  upstream
      Port:  ncurses  |
----------------------+----------------------

Comment (by jmroot):

 DTS has suggested to try using the `__building_module` builtin in our
 headers. For example, our `unctrl.h` would look like:
 {{{
 #if __building_module(Darwin)
 #include_next <unctrl.h>
 #else
 // normal content of file from ncurses 6
 #endif
 }}}

 It would be a little more code in practice, e.g. we'd have to first check
 that the compiler has that builtin.

-- 
Ticket URL: <https://trac.macports.org/ticket/59992#comment:36>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list