Glommio is a thread-per-core crate that makes writing highly parallel asynchronous applications in a thread-per-core architecture easier for rustaceans.
Other
2.93k
stars
161
forks
source link
Define CFLAG -D_GNU_SOURCE as per liburing ./configure #665
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
What does this PR do?
The
./configure
script for liburing setsCFLAG=-D_GNU_SOURCE
, so we should set it on ourbuild.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