8000 The symbol `bsd_signal` does not fit here. · Issue #109 · jameysharp/corrode · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
The symbol bsd_signal does not fit here. #109
Open
@bluejekyll

Description

@bluejekyll

Getting this error on macOS, trying to use corrode with a signal.h inclusion.

/usr/include/signal.h:79: (column 19) [ERROR]  >>> Syntax Error !
  Syntax error !
  The symbol `bsd_signal' does not fit here.

this is the line in that header:

void  (* _Nullable bsd_signal(int, void (* _Nullable)(int)))(int);

That's wrapped in a #ifndef _ANSI_SOURCE

so, passing -D__DARWIN_C_LEVEL=200112 is a workaround for this. This setting seems to be the max for the system, that probably raises the minimum macOS version for targets.

Perhaps instead of a bug, what is needed is a standard definition of compiler flags for macOS?

related: #81 , #82 , #99

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0