Skip to content
Snippets Groups Projects
Commit c4947bbb authored by Tomasz Miąsko's avatar Tomasz Miąsko
Browse files

Define _NETBSD_SOURCE when building on NetBSD.

Both pthread_condattr_setclock and pthread_condattr_getclock are guarded
by #if defined(_NETBSD_SOURCE) on NetBSD.
parent cb64485f
No related branches found
No related tags found
Loading
......@@ -22,9 +22,11 @@ fn main() {
let bsdlike = freebsd || apple || netbsd || openbsd || dragonfly;
let mut cfg = ctest::TestGenerator::new();
// Pull in extra goodies on linux/mingw
// Pull in extra goodies
if linux || android {
cfg.define("_GNU_SOURCE", None);
} else if netbsd {
cfg.define("_NETBSD_SOURCE", Some("1"));
} else if windows {
cfg.define("_WIN32_WINNT", Some("0x8000"));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment