libxcrypt/libxcrypt-4.4.26-sw.patch
Hailiang cffe51c7a8 add sw_64 support
(cherry picked from commit 39bb75ebd16a419a289a634442b91ef0d3f0736d)
2025-03-04 14:59:53 +08:00

25 lines
1.2 KiB
Diff

diff -uNar libxcrypt-4.4.26.org/lib/crypt-bcrypt.c libxcrypt-4.4.26.sw/lib/crypt-bcrypt.c
--- libxcrypt-4.4.26.org/lib/crypt-bcrypt.c 2022-02-15 12:55:07.000000000 +0000
+++ libxcrypt-4.4.26.sw/lib/crypt-bcrypt.c 2022-02-15 12:55:49.510000000 +0000
@@ -52,7 +52,7 @@
#if INCLUDE_bcrypt || INCLUDE_bcrypt_a || INCLUDE_bcrypt_x || INCLUDE_bcrypt_y
#if defined(__i386__) || defined(__x86_64__) || \
- defined(__alpha__) || defined(__hppa__)
+ defined(__alpha__) || defined(__hppa__) || defined(__sw_64__)
#define BF_SCALE 1
#else
#define BF_SCALE 0
diff -uNar libxcrypt-4.4.26.org/lib/libcrypt.minver libxcrypt-4.4.26.sw/lib/libcrypt.minver
--- libxcrypt-4.4.26.org/lib/libcrypt.minver 2022-02-15 12:55:07.000000000 +0000
+++ libxcrypt-4.4.26.sw/lib/libcrypt.minver 2022-02-15 14:16:36.550000000 +0000
@@ -80,6 +80,7 @@
GLIBC_2.2.5 linux.*gnu x86_64 defined __x86_64__ && ULONG_MAX != UINT_MAX /* 64 */
GLIBC_2.2 linux.*gnu s390x
GLIBC_2.0 linux.*gnu alpha
+GLIBC_2.0 linux.*gnu sw_64
GLIBC_2.0 linux.*gnu e2k
GLIBC_2.0 linux.*gnu hppa
GLIBC_2.0 linux.*gnu i[3-9]86