Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'LIST_HEAD' macro redefined, built on macOS #99

Closed
jserv opened this issue Feb 11, 2019 · 1 comment
Closed

'LIST_HEAD' macro redefined, built on macOS #99

jserv opened this issue Feb 11, 2019 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@jserv
Copy link
Member

jserv commented Feb 11, 2019

The build procedure of dcurl on macOS v10.14:

src/list.h:72:9: warning: 'LIST_HEAD' macro redefined [-Wmacro-redefined]
#define LIST_HEAD(head) struct list_head head = {&(head), &(head)}
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/queue.h:421:9: note: previous definition is here
#define LIST_HEAD(name, type)                                           \
        ^
1 warning generated.

Macro LIST_HEAD in dcurl conflicts with the headers provided by macOS SDK.

@jserv jserv added the bug Something isn't working label Feb 11, 2019
@marktwtn
Copy link
Collaborator

Shall we just give the macro another name?

@jserv jserv closed this as completed in 78f6fc8 Apr 10, 2019
@jserv jserv added this to the Saxifraga milestone Apr 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants