We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
HAVE_CLOCK_GETTIME_MONOTONIC
HAVE_MACH_ABSOLUTE_TIME
1 parent 8936e34 commit 6c23babCopy full SHA for 6c23bab
curl-sys/build.rs
@@ -270,12 +270,15 @@ fn main() {
270
}
271
} else {
272
if target.contains("-apple-") {
273
- cfg.define("__APPLE__", None).define("macintosh", None);
+ cfg.define("__APPLE__", None)
274
+ .define("macintosh", None)
275
+ .define("HAVE_MACH_ABSOLUTE_TIME", None);
276
+ } else {
277
+ cfg.define("HAVE_CLOCK_GETTIME_MONOTONIC", None)
278
+ .define("HAVE_GETTIMEOFDAY", None);
279
280
281
cfg.define("RECV_TYPE_ARG1", "int")
- .define("HAVE_CLOCK_GETTIME_MONOTONIC", None)
- .define("HAVE_GETTIMEOFDAY", None)
282
.define("HAVE_PTHREAD_H", None)
283
.define("HAVE_ARPA_INET_H", None)
284
.define("HAVE_ERRNO_H", None)
0 commit comments