diff -arup ncurses-6.3.orig/config.guess ncurses-6.3/config.guess
--- ncurses-6.3.orig/config.guess	2021-06-04 12:01:25.000000000 +0800
+++ ncurses-6.3/config.guess	2023-02-15 09:45:20.743936365 +0800
@@ -1140,6 +1140,9 @@ EOF
     sparc:Linux:*:* | sparc64:Linux:*:*)
 	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
 	;;
+    sw_64*:Linux:*:*)
+	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
+	;;
     tile*:Linux:*:*)
 	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
 	;;
diff -arup ncurses-6.3.orig/config.sub ncurses-6.3/config.sub
--- ncurses-6.3.orig/config.sub	2021-08-15 00:20:38.000000000 +0800
+++ ncurses-6.3/config.sub	2023-02-15 09:46:19.158924225 +0800
@@ -1262,6 +1262,7 @@ case $cpu-$vendor in
 			| sparclite \
 			| sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \
 			| spu \
+			| sw_64 \
 			| tahoe \
 			| thumbv7* \
 			| tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \
