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

Fix macOS build regression from XOPEN_SOURCE=600 #96

Merged
merged 2 commits into from
May 14, 2024
Merged

Conversation

raggi
Copy link
Member

@raggi raggi commented May 14, 2024

This fixes the regression, also adds a macOS CI pipeline.

raggi added 2 commits May 13, 2024 16:59
After adding XOPEN_SOURCE to include POSIX explicitly on Linux, we
trigger the Darwin behavior of no longer defining Darwin extensions by
default. Adding DARWIN_C_SOURCE restores access to those, particularly
flock.

Updates tailscale/corp#19964
This will catch regressions such as the one introduced in #95.

Updates tailscale/corp#19964
@raggi raggi requested a review from creachadair May 14, 2024 00:02
Copy link
Member

@creachadair creachadair left a comment

Choose a reason for hiding this comment

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

Oops, sorry, I should have thought to ask about Darwin.

@raggi
Copy link
Member Author

raggi commented May 14, 2024

It's easy to miss, libc/posix versioning are not pleasant to deal with!

@raggi raggi merged commit 16551f2 into main May 14, 2024
2 checks passed
@raggi raggi deleted the raggi/darwin-source branch May 14, 2024 00:15
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.

None yet

2 participants