#35619: sdcc: error: conflicting types for 'getline' ------------------------------------------+--------------------------------- Reporter: fabrizio.giuliano@… | Owner: snc@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: wontfix | Keywords: Port: sdcc | ------------------------------------------+--------------------------------- Comment(by fabrizio.giuliano@…): Thank you! i did: {{{ sudo port install sdcc29 sudo port edit sdcc29 }}} Insert this snippet (it works with Mountain Lion): {{{ platform darwin 12 { post-patch { # 10.7 provides 'getline()' already, but it is not # interchangeable with that provided by SDCC. change SDCC's # internal to "sdcc_getline", but not the #includes reinplace "/getline/s@getline @sdcc_getline @g" \ ${worksrcpath}/as/link/getline.h \ ${worksrcpath}/as/link/getline.c \ ${worksrcpath}/as/link/lklib.c \ ${worksrcpath}/as/link/lkrel.c \ ${worksrcpath}/as/link/lksdcclib.c } } }}} It works! Thanks a lot again! -- Ticket URL: <https://trac.macports.org/ticket/35619#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS