FreeBSD: Fixes required to build ZFS on PowerPC

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matt Macy <mmacy@FreeBSD.org>
Closes #10622
This commit is contained in:
Matthew Macy
2020-07-25 11:00:23 -07:00
committed by GitHub
parent d364de7a89
commit f5b189f937
3 changed files with 18 additions and 3 deletions
+15
View File
@@ -542,6 +542,21 @@ extern "C" {
#define _BIT_FIELDS_LTOH
#endif
#if !defined(__powerpc)
#define __powerpc
#endif
#if defined(__powerpc64__)
#define _LONG_LONG_ALIGNMENT 8
#define _MULTI_DATAMODEL
#else
#define _LONG_LONG_ALIGNMENT 4
#endif
#define _LONG_LONG_ALIGNMENT_32 4
#define _ALIGNMENT_REQUIRED 1
#define _SUNOS_VTOC_16 1
/*
* The following set of definitions characterize the Solaris on SPARC systems.
*