-
Notifications
You must be signed in to change notification settings - Fork 624
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
unbreak on BSD where the major() function is defined #577
Comments
@ajacoutot, feel free to send a pull request for this also but other than that, is there any free CI service, like TravisCI/CircleCI/Jenkins for Linux/macOS or AppVeyor for Windows (or some in house you might have?) so we can test harfbuzz against freebsd also? |
Thanks for the report. I'll rename. |
@ebraminio unfortunately I am not aware of any CI SaaS offering for BSD systems :-/ |
@ajacoutot, hi there, #595 adds freebsd9 cross-build. I hope it can help preventing issues like this in future, I guess you can suggest the solution to other projects also. It uses freebsd9 with gcc4, was "major" also defined there? |
@ebraminio , hey ! Yes, major was also defined in FreeBSD. I believe it exists on all BSD :-) |
Hi.
The commit deed4a4 broke building harfbuzz on BSD systems.
In file included from hb-set.cc:27: ./hb-set-private.hh:466:16: error: expected ')' unsigned int major (hb_codepoint_t g) const { return g / PAGE_SIZE; }
It's probably due to the fact that we have major(3) defined in sys/types.h.
See https://linux.die.net/man/3/major and https://man.openbsd.org/major
Fix is easy, let's just rename major into something less common. I didn't open a pull request because I'll leave it up to you to decide on the naming :-)
Thanks!
The text was updated successfully, but these errors were encountered: