Opened 12 years ago

Last modified 12 years ago

#35822 closed defect

dap fails to compile on Lion due to redefined getline() — at Initial Version

Reported by: Polyergic (Shad Sterling) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: lion Cc:
Port: dap

Description

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

Change History (1)

Changed 12 years ago by Polyergic (Shad Sterling)

Attachment: main.log added

build log

Note: See TracTickets for help on using tickets.