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

Define CFLAG -D_GNU_SOURCE as per liburing ./configure #665

Merged
merged 1 commit into from
May 28, 2024

Conversation

yokomizor
Copy link
Contributor

What does this PR do?

The ./configure script for liburing sets CFLAG=-D_GNU_SOURCE, so we should set it on our build.rs as well.

Motivation

Fixes the following build error with musl libc:
error: unknown type name 'cpu_set_t'

On musl, cpu_set_t is only defined when _GNU_SOURCE is set.

Related issues

none

Additional Notes

none

Checklist

[] I have added unit tests to the code I am submitting
[] My unit tests cover both failure and success scenarios
[] If applicable, I have discussed my architecture

The ./configure script for liburing sets the CFLAG -D_GNU_SOURCE, so we
should set it on our build.rs as well.

Fixes the following build error with musl libc:
`error: unknown type name 'cpu_set_t'`

On musl, `cpu_set_t` is only defined when _GNU_SOURCE is set.
@glommer
Copy link
Collaborator

glommer commented May 28, 2024

thanks!

@glommer glommer merged commit 4328437 into DataDog:master May 28, 2024
4 of 5 checks passed
@yokomizor yokomizor deleted the cflag_d_gnu_source branch May 28, 2024 16:26
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