[MacPorts] #35822: dap fails to compile on Lion due to redefined getline()
MacPorts
noreply at macports.org
Sat Aug 25 11:00:57 PDT 2012
#35822: dap fails to compile on Lion due to redefined getline()
---------------------------------+------------------------------------------
Reporter: me@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Keywords: dap Lion getline | Port:
---------------------------------+------------------------------------------
It looks like Lion introduced a new getline() in the system headers which
conflicts with a getline() defined by dap.
:info:build dap0.c:546:12: error: static declaration of 'getline' follows
non-static declaration
:info:build static int getline(DFILE *fp, char *line)
:info:build ^
:info:build /usr/include/stdio.h:449:9: note: previous declaration is here
:info:build ssize_t getline(char ** __restrict, size_t * __restrict, FILE
* __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
:info:build ^
--
Ticket URL: <https://trac.macports.org/ticket/35822>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list