On 5/3/19 6:32 PM, Christian Weisgerber wrote:
Brian Callahan:

phessler@'s latest aarch64 bulk showed that games/stepmania failed to build.
The attach patch fixes things on it and armv7 as a bonus.
++/* detect arm64 and arm */
++#if defined(__OpenBSD__)
++  #if defined(__aarch64__)
++    #define ENDIAN_LITTLE
++    #define ENDIAN_64BITWORD
++  #elif defined(__arm__)
++    #define ENDIAN_LITTLE
++    #define ENDIAN_32BITWORD
++  #endif
++#endif
Would it be possible to use <endian.h> and __LP64__ to set these
instead of hardcoding individual archs?


Maybe. But it would be invasive and I'd need some i386 testers to make sure I didn't break anything.

~Brian

Reply via email to