Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/ntp/include fix WORDS_BIGENDIAN
details: https://anonhg.NetBSD.org/src/rev/cc1cd5cb791e
branches: trunk
changeset: 933724:cc1cd5cb791e
user: christos <christos%NetBSD.org@localhost>
date: Fri May 29 11:01:53 2020 +0000
description:
fix WORDS_BIGENDIAN
diffstat:
external/bsd/ntp/include/config.h | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diffs (24 lines):
diff -r 5586f89483f3 -r cc1cd5cb791e external/bsd/ntp/include/config.h
--- a/external/bsd/ntp/include/config.h Fri May 29 10:53:02 2020 +0000
+++ b/external/bsd/ntp/include/config.h Fri May 29 11:01:53 2020 +0000
@@ -1687,6 +1687,7 @@
#endif
#ifndef __NetBSD__
+
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
#if defined AC_APPLE_UNIVERSAL_BUILD
@@ -1698,6 +1699,12 @@
/* # undef WORDS_BIGENDIAN */
# endif
#endif
+
+#else /* __NetBSD */
+# include <sys/endian.h>
+# if _BYTE_ORDER == _BIG_ENDIAN
+# define WORDS_BIGENDIAN 1
+# endif
#endif
/* routine worker child proc uses to exit. */
Home |
Main Index |
Thread Index |
Old Index