Define _NETBSD_SOURCE when building on NetBSD.

Both pthread_condattr_setclock and pthread_condattr_getclock are guarded
by #if defined(_NETBSD_SOURCE) on NetBSD.
This commit is contained in:
Tomasz Miąsko 2016-07-21 07:27:21 +02:00
parent cb64485f27
commit c4947bbb6d

View file

@ -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"));
}