diff -Nru chmlib-0.40.orig/src/chm_lib.c chmlib-0.40/src/chm_lib.c --- chmlib-0.40.orig/src/chm_lib.c 2023-07-16 06:56:21.840221641 +0000 +++ chmlib-0.40/src/chm_lib.c 2023-07-16 07:46:45.948571635 +0000 @@ -164,7 +164,7 @@ /* x86-64 */ /* Note that these may be appropriate for other 64-bit machines. */ -#elif __aarch64__ || __x86_64__ || __ia64__ +#elif __aarch64__ || __x86_64__ || __ia64__ || __loongarch64 typedef unsigned char UChar; typedef short Int16; typedef unsigned short UInt16;