-
Notifications
You must be signed in to change notification settings - Fork 852
Make 9.2.x buildable on macOS 26 #12834
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
base: 9.2.x
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,8 +26,10 @@ | |
| #include "tscore/ink_config.h" | ||
|
|
||
| #ifdef HAVE_SYS_ENDIAN_H | ||
| #if !defined(darwin) | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Old versions of macOS didn't have be64toh and the other functions, but now those are defined on endian.h, and those cause errors due to duplication. I could add a check for the availability of those functions, but this small change is enough. We don't have this issue on newer codebase. |
||
| #include <sys/endian.h> | ||
| #endif | ||
| #endif | ||
| #ifdef HAVE_MACHINE_ENDIAN_H | ||
| #include <machine/endian.h> | ||
| #endif | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is hacky and only works for Apple Clang 17, but I don't think we will need to maintain it for a long time.