Skip to content

Don't define __BSD_VISIBLE on OpenBSD.#328

Open
3405691582 wants to merge 2 commits into
apple:mainfrom
3405691582:invisible
Open

Don't define __BSD_VISIBLE on OpenBSD.#328
3405691582 wants to merge 2 commits into
apple:mainfrom
3405691582:invisible

Conversation

@3405691582

Copy link
Copy Markdown
Contributor

This causes a compilation error because OpenBSD headers that refer to this aren't #ifdef but #if, so the define must have a value.

This doesn't actually seem to be necessary on OpenBSD, so let's just remove it on OpenBSD.

This causes a compilation error because OpenBSD headers that refer to
this aren't `#ifdef` but `#if`, so the define must have a value.

This doesn't actually seem to be necessary on OpenBSD, so let's just
remove it on OpenBSD.

@glessard glessard left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a reasonable change.

Comment thread Sources/CSystem/shims.c Outdated
Comment thread Sources/CSystem/shims.c
Refactor conditional compilation blocks

Co-authored-by: Guillaume Lessard <glessard@tffenterprises.com>
@glessard

Copy link
Copy Markdown
Contributor

@swift-ci please test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants