Module Name: src
Committed By: christos
Date: Fri May 29 11:01:53 UTC 2020
Modified Files:
src/external/bsd/ntp/include: config.h
Log Message:
fix WORDS_BIGENDIAN
To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/external/bsd/ntp/include/config.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/ntp/include/config.h
diff -u src/external/bsd/ntp/include/config.h:1.25 src/external/bsd/ntp/include/config.h:1.26
--- src/external/bsd/ntp/include/config.h:1.25 Fri May 29 06:50:36 2020
+++ src/external/bsd/ntp/include/config.h Fri May 29 07:01:53 2020
@@ -1687,6 +1687,7 @@ typedef unsigned int uintptr_t;
#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 @@ typedef unsigned int uintptr_t;
/* # 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. */