--- pr/include/md/_freebsd.cfg.orig	2020-10-13 12:24:10 UTC
+++ pr/include/md/_freebsd.cfg
@@ -253,8 +253,13 @@
 
 #elif defined(__powerpc64__)
 
+#ifdef __LITTLE_ENDIAN__
+#define IS_LITTLE_ENDIAN 1
+#undef  IS_BIG_ENDIAN
+#else
 #undef  IS_LITTLE_ENDIAN
 #define IS_BIG_ENDIAN    1
+#endif
 #define IS_64
 
 #define PR_BYTES_PER_BYTE   1
