mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +00:00
Work around eventfd on NetBSD
Revisit if libc gains support
This commit is contained in:
parent
e4bcee2727
commit
2965603e7f
1 changed files with 6 additions and 1 deletions
7
build.rs
7
build.rs
|
@ -87,7 +87,12 @@ fn detect_cfgs(target: &mut Target) {
|
|||
Ok(target.has_symbol("pipe2"))
|
||||
}),
|
||||
("HAVE_EVENTFD", &|target| {
|
||||
Ok(target.has_header("sys/eventfd.h"))
|
||||
// FIXME: NetBSD 10 has eventfd, but the libc crate does not expose it.
|
||||
if cfg!(target_os = "netbsd") {
|
||||
Ok(false)
|
||||
} else {
|
||||
Ok(target.has_header("sys/eventfd.h"))
|
||||
}
|
||||
}),
|
||||
("HAVE_WAITSTATUS_SIGNAL_RET", &|target| {
|
||||
Ok(target.r#if("WEXITSTATUS(0x007f) == 0x7f", &["sys/wait.h"]))
|
||||
|
|
Loading…
Reference in a new issue