sysutils/cdrdao: stab at fixing on riscv
This commit is contained in:
parent
513bcc8c55
commit
28dd25825b
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user