summaryrefslogtreecommitdiff
blob: b57a04365e71ead2d6d05b12f07b6d7307017ece (plain)
1
2
3
4
5
6
7
8
9
10
11
diff -U3 -r a/mgetty.h b/mgetty.h
--- a/mgetty.h
+++ b/mgetty.h
@@ -198,7 +198,7 @@
  */
 #if defined(__alpha__) || defined(__sparc64__) || \
 	    defined(__ia64__) || defined(__s390x__) || defined(__x86_64__) || \
-	    defined(__powerpc64__) || defined(__aarch64__)
+	    defined(__powerpc64__) || defined(__aarch64__) || (defined(__riscv) && __riscv_xlen == 64)
 # define PTR_IS_LONG
 #endif