Created
June 7, 2017 06:20
-
-
Save nonakap/167e7dbd1d7d7cb07f5186ce6614003a to your computer and use it in GitHub Desktop.
pkgsrc/devel/git-base 2.13.1: misdetection big endian on NetBSD 7.1_STABLE/amd64
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- sha1dc/sha1.c.orig 2017-06-05 01:08:11.000000000 +0000 | |
| +++ sha1dc/sha1.c 2017-06-07 06:09:44.000000000 +0000 | |
| @@ -38,7 +38,7 @@ | |
| #if (!defined SHA1DC_FORCE_LITTLEENDIAN) && \ | |
| ((defined(__BYTE_ORDER) && (__BYTE_ORDER == __BIG_ENDIAN)) || \ | |
| (defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __BIG_ENDIAN__)) || \ | |
| - defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__) || defined(__ARMEB__) || defined(__THUMBEB__) || defined(__AARCH64EB__) || \ | |
| + ((defined(sun) || defined(__sun)) && defined(_BIG_ENDIAN)) || defined(__BIG_ENDIAN__) || defined(__ARMEB__) || defined(__THUMBEB__) || defined(__AARCH64EB__) || \ | |
| defined(_MIPSEB) || defined(__MIPSEB) || defined(__MIPSEB__) || defined(SHA1DC_FORCE_BIGENDIAN)) | |
| #define SHA1DC_BIGENDIAN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment