Closed michael-o closed 5 years ago
Thanks for the proposed changes.
Just to be sure: the proposed change is to whitelist HP UX OS as Big Endian, is this guaranteed to hold? Or are there also HP UX on Little Endian machines?
There is no HP-UX on x86_64 yet, HPE is probably in preparation for, but there aren't any products available as told by our HPE salesman. HP-UX on PA-RISC and Itanium is big endian.
There is this:
#include <sys/portal.h>
#include <stdio.h>
int main(void) {
int i;
TEST_ENDIAN(i)
printf("%d\n", i);
return 0;
}
but is is a runtime check.
I would rely on the macro for now (upcoming years).
@MONIMAKER365 as far as we understand, HP-UX should be detected properly and big-endian configuration activated. If you have problems with the detection macros and HP-UX then please provide more information.
@MONIMAKER365 I am confused because Git has now been flawlessly working for me on HP-UX for quite some time.
HP-UX is not properly detected and classified as little endian. Add test macro for HP-UX to make it big endian.
Based on the discussion on the Git mailing list, here is the upstream patch for HP-UX detection.