ports/devel/dwz/patches/patch-sha1_c

16 lines
301 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
More portable endianness check
https://www.austingroupbugs.net/view.php?id=162#c665
Index: sha1.c
--- sha1.c.orig
+++ sha1.c
@@ -29,7 +29,7 @@
#include <string.h>
#include <endian.h>
-#if __BYTE_ORDER == __BIG_ENDIAN
+#if BYTE_ORDER == BIG_ENDIAN
# define SWAP(n) (n)
#else
# define SWAP(n) \