Skip to content

Fix compilation on FreeBSD #197

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

Merged
merged 1 commit into from
Mar 20, 2025
Merged

Fix compilation on FreeBSD #197

merged 1 commit into from
Mar 20, 2025

Conversation

0mp
Copy link
Contributor

@0mp 0mp commented Oct 2, 2024

On FreeBSD, we need to set _XOPEN_SOURCE_EXTENDED
(or __BSD_VISIBLE) to access everything we need.

A similar patch is already in use in the FreeBSD Ports:
https://github.com/freebsd/freebsd-ports/blob/main/graphics/ttyplot/files/patch-ttyplot.c.

On FreeBSD, we need to set _XOPEN_SOURCE_EXTENDED
(or __BSD_VISIBLE) to access everything we need.
@0mp
Copy link
Contributor Author

0mp commented Oct 3, 2024

I've addressed the formatting issues reported by CI.

Copy link
Collaborator

@edgar-bonet edgar-bonet left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks for the PR!

@tenox7 tenox7 merged commit 0333fa9 into tenox7:master Mar 20, 2025
8 checks passed
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.

3 participants