32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
|
diff -up ./util/ArchInfo.c.ppc64 ./util/ArchInfo.c
|
||
|
--- ./util/ArchInfo.c.ppc64 2016-10-11 17:39:44.000000000 -0400
|
||
|
+++ ./util/ArchInfo.c 2016-12-02 17:35:50.896575546 -0500
|
||
|
@@ -98,8 +98,15 @@ gcc arch.c
|
||
|
#error unknown endian
|
||
|
#endif
|
||
|
#elif defined(__powerpc64__) || defined(__ppc64__) || defined(__PPC64__) || defined(_ARCH_PPC64)
|
||
|
- #define ARCH ArchInfo_AUDIT_ARCH_PPC64
|
||
|
- #define ARCHSTR "ppc64"
|
||
|
+ #if defined(Endian_BIG)
|
||
|
+ #define ARCH ArchInfo_AUDIT_ARCH_PPC64
|
||
|
+ #define ARCHSTR "ppc64"
|
||
|
+ #elif defined(Endian_LITTLE)
|
||
|
+ #define ARCH ArchInfo_AUDIT_ARCH_PPC64LE
|
||
|
+ #define ARCHSTR "ppc64le"
|
||
|
+ #else
|
||
|
+ #error unknown endian
|
||
|
+ #endif
|
||
|
#elif defined(__powerpc__) || defined(__ppc__) || defined(__PPC__) || defined(_ARCH_PPC)
|
||
|
#define ARCH ArchInfo_AUDIT_ARCH_PPC
|
||
|
#define ARCHSTR "ppc"
|
||
|
@@ -145,6 +152,9 @@ gcc arch.c
|
||
|
#else
|
||
|
#error unknown bit width
|
||
|
#endif
|
||
|
+#elif defined(__s390x__)
|
||
|
+ #define ARCH ArchInfo_AUDIT_ARCH_S390X
|
||
|
+ #define ARCHSTR "s390x"
|
||
|
#else
|
||
|
#error architecture unknown
|
||
|
#endif
|