Skip to content

Instantly share code, notes, and snippets.

@nonakap
Created June 7, 2017 06:20
Show Gist options
  • Select an option

  • Save nonakap/167e7dbd1d7d7cb07f5186ce6614003a to your computer and use it in GitHub Desktop.

Select an option

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
--- 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