Index: john-1.8.0/src/ppc64.h
===================================================================
--- john-1.8.0.orig/src/ppc64.h
+++ john-1.8.0/src/ppc64.h
@@ -20,7 +20,11 @@
 #define ARCH_BITS			64
 #define ARCH_BITS_LOG			6
 #define ARCH_BITS_STR			"64"
+#if defined(__LITTLE_ENDIAN__)
+#define ARCH_LITTLE_ENDIAN		1
+#else
 #define ARCH_LITTLE_ENDIAN		0
+#endif
 #define ARCH_INT_GT_32			0
 #define ARCH_ALLOWS_UNALIGNED		0
 #define ARCH_INDEX(x)			((unsigned int)(unsigned char)(x))
