mirror of
https://git.freebsd.org/ports.git
synced 2025-05-17 09:33:11 -04:00
21 lines
574 B
C
21 lines
574 B
C
--- src/util/sss_endian.h.orig 2020-03-17 13:31:28 UTC
|
|
+++ src/util/sss_endian.h
|
|
@@ -29,6 +29,18 @@
|
|
# include <sys/endian.h>
|
|
#endif /* !HAVE_ENDIAN_H && !HAVE_SYS_ENDIAN_H */
|
|
|
|
+#if defined(_BYTE_ORDER) && !defined(__BYTE_ORDER)
|
|
+#define __BYTE_ORDER _BYTE_ORDER
|
|
+#endif
|
|
+
|
|
+#if defined(_LITTLE_ENDIAN) && !defined(__LITTLE_ENDIAN)
|
|
+#define __LITTLE_ENDIAN _LITTLE_ENDIAN
|
|
+#endif
|
|
+
|
|
+#if defined(_BIG_ENDIAN) && !defined(__BIG_ENDIAN)
|
|
+#define __BIG_ENDIAN _BIG_ENDIAN
|
|
+#endif
|
|
+
|
|
/* Endianness-compatibility for systems running older versions of glibc */
|
|
|
|
#ifndef le32toh
|