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

Unbreak build on FreeBSD #239

Merged
merged 1 commit into from
Jun 19, 2022
Merged

Unbreak build on FreeBSD #239

merged 1 commit into from
Jun 19, 2022

Conversation

jbeich
Copy link
Contributor

@jbeich jbeich commented Jun 19, 2022

Fixes #238 by adjusting GNU feature macros

- usleep was removed in POSIX.1-2008 (X/Open Issue 7)
- DT_DIR and flock are BSD extensions but BSDs don't use _DEFAULT_SOURCE
- _DEFAULT_SOURCE in GNU exposes POSIX.1-2008 + BSD + SysV mix
@jbeich jbeich changed the title Unbreak build on FreeBSD via _GNU_SOURCE on Linux Unbreak build on FreeBSD Jun 19, 2022
@rvaiya rvaiya merged commit bb49007 into rvaiya:master Jun 19, 2022
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.

-D_XOPEN_SOURCE=700 breaks build with non-glibc
2 participants