Closed autoantwort closed 3 years ago
Our CI builds matio on macOS but could not repoduce so far. Check the builds .17, .18 and .19 from https://app.travis-ci.com/github/tbeu/matio/builds/233045460.
Can you please check and confirm if efcd262855931460ebe80d4042b0e8f9c46c1d13 works in your environment.
Otherwise you can also get the binaries from Conan center.
Can you please check and confirm if efcd262 works in your environment.
Yeah that works 👍
Fixed in master.
I think only the #include <unistd.h>
was necessary. Just tried on my own build and removing #define _DARWIN_C_SOURCE
does not break the build. The man page also does not say anything about needing a special define...
Thanks for confirmation @seanm . Since _DARWIN_C_SOURCE
does not hurt, I am reluctant to remove it again.
I'm not convinced it "does not hurt". Who knows what all the various included headers may do differently based on that being defined or not.
Also, looking at the FreeBSD and OpenBSD man pages, it might be best to #include <unistd.h>
unconditionally. I could try to building master on them...
_DARWIN_C_SOURCE
is removed again by 34b1708.
@autoantwort Please confirm if still relevant for you. Thanks.
Still builds without errors.
Thanks!
I also tried FreeBSD and indeed it builds.
When I try to build the project I get the following error: