forked from Lainports/freebsd-ports
Patch originally sent upstream by jhibbits@; fix endianness checks so that powerpc hosts can actually build powerpc images. Backport it to our 2017.09 since it won't appear in a release until 2018.03 at the earliest. Reviewed by: manu Approved by: imp (ports) Differential Revision: https://reviews.freebsd.org/D14219
12 lines
394 B
C
12 lines
394 B
C
--- include/compiler.h.orig 2018-02-06 02:48:39 UTC
|
|
+++ include/compiler.h
|
|
@@ -50,6 +50,9 @@ typedef unsigned long ulong;
|
|
#endif
|
|
#ifdef __FreeBSD__
|
|
# include <sys/endian.h> /* htole32 and friends */
|
|
+# define __BYTE_ORDER BYTE_ORDER
|
|
+# define __LITTLE_ENDIAN LITTLE_ENDIAN
|
|
+# define __BIG_ENDIAN BIG_ENDIAN
|
|
#elif defined(__OpenBSD__)
|
|
# include <endian.h>
|
|
# define __BYTE_ORDER BYTE_ORDER
|