Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Build Failed on GNU/Hurd #183

Closed
GreaterFire opened this issue Dec 28, 2019 · 1 comment
Closed

[BUG] Build Failed on GNU/Hurd #183

GreaterFire opened this issue Dec 28, 2019 · 1 comment

Comments

@GreaterFire
Copy link
Member

@GreaterFire GreaterFire commented Dec 28, 2019

#ifdef __MACH__
#include <Security/Security.h>
#endif // __MACH__

In GNU/Hurd, __MACH__ is also defined, but the macOS specific header file doesn't exist.

@wongsyrone
Copy link
Contributor

@wongsyrone wongsyrone commented Dec 28, 2019

Some applications put Apple Darwin-specific code inside #ifdef __MACH__ guards. Such guard is clearly not enough, since not only Apple uses Mach as a kernel. This should be replaced by #if defined(__MACH__) && defined(__APPLE__)

https://www.gnu.org/software/hurd/hurd/porting/guidelines.html

GreaterFire added a commit that referenced this issue Dec 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.