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 compilation on FreeBSD #197

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix compilation on FreeBSD #197

wants to merge 1 commit into from

Conversation

0mp
Copy link

@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
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!

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