sysutils/cdrdao: stab at fixing on riscv

This commit is contained in:
Marius Strobl 2021-12-20 23:06:50 +01:00
parent 513bcc8c55
commit 28dd25825b
2 changed files with 2 additions and 4 deletions

View File

@ -12,8 +12,6 @@ COMMENT?= Record CD-R[W]s in disk-at-once mode
LICENSE= GPLv2
BROKEN_riscv64= ../include/mconfig.h:86:2: error: Architecture not defined here
USES= alias compiler:c++11-lang gmake tar:bzip2
GNU_CONFIGURE= yes
USE_CXXSTD= c++11

View File

@ -5,13 +5,13 @@
*/
-#if defined(__x86_64__) || defined(__ia64__) || defined(__powerpc64__) || defined(__s390x__) || defined(__sparc64__)
+#if defined(__aarch64__) || defined(__ia64__) || defined(__mips_n64) || defined(__powerpc64__) || defined(__s390x__) || defined(__sparc64__) || defined(__x86_64__)
+#if defined(__aarch64__) || defined(__ia64__) || defined(__mips_n64) || defined(__powerpc64__) || (defined(__riscv) && (__riscv_xlen == 64)) || defined(__s390x__) || defined(__sparc64__) || defined(__x86_64__)
#define SIZEOF_LONG_INT 8
#define SIZEOF_CHAR_P 8
#define SIZEOF_UNSIGNED_LONG_INT 8
#define SIZEOF_UNSIGNED_CHAR_P 8
-#elif defined(__i386__) || defined(__powerpc__) || defined(__s390__) || defined(__sparc__)
+#elif defined(__arm__) || defined(__i386__) || defined(__mips__) || defined(__powerpc__) || defined(__s390__) || defined(__sparc__)
+#elif defined(__arm__) || defined(__i386__) || defined(__mips__) || defined(__powerpc__) || (defined(__riscv) && (__riscv_xlen == 32)) || defined(__s390__) || defined(__sparc__)
#define SIZEOF_LONG_INT 4
#define SIZEOF_CHAR_P 4
#define SIZEOF_UNSIGNED_LONG_INT 4