acpica-tools/s390x-ptrs.patch
Al Stone 659d8804ed BZ#1365193 -- s390x FTBFS due to int/ptr mismatch
This is an attempt to fix the bug; the ACPI_MACHINE_WIDTH setting was
letting s390x be treated as a 32-bit machine, not a 64-bit one.

Signed-off-by: Al Stone <ahs3@redhat.com>
2016-09-01 16:06:41 -06:00

14 lines
727 B
Diff

diff -Naur acpica-unix2-20160831/source/include/platform/aclinux.h acpica-unix2-20160831-s390x/source/include/platform/aclinux.h
--- acpica-unix2-20160831/source/include/platform/aclinux.h 2016-09-01 15:18:36.306268594 -0600
+++ acpica-unix2-20160831-s390x/source/include/platform/aclinux.h 2016-09-01 16:01:34.955157827 -0600
@@ -194,7 +194,8 @@
#define ACPI_CAST_PTHREAD_T(Pthread) ((ACPI_THREAD_ID) (Pthread))
#if defined(__ia64__) || defined(__x86_64__) ||\
- defined(__aarch64__) || defined(__PPC64__)
+ defined(__aarch64__) || defined(__PPC64__) ||\
+ defined(__s390x__)
#define ACPI_MACHINE_WIDTH 64
#define COMPILER_DEPENDENT_INT64 long
#define COMPILER_DEPENDENT_UINT64 unsigned long