In article <20140712200319.aa0b...@cvs.netbsd.org>, S.P.Zeidler <source-changes-d@NetBSD.org> wrote: >-=-=-=-=-=- > >Module Name: src >Committed By: spz >Date: Sat Jul 12 20:03:19 UTC 2014 > >Modified Files: > src/external/bsd/dhcp/include: config.h > >Log Message: >update config.h to the new version and enable DHCPv6 > > >To generate a diff of this commit: >cvs rdiff -u -r1.4 -r1.5 src/external/bsd/dhcp/include/config.h > >Please note that diffs are not public domain; they are subject to the >copyright notices on the relevant files. > > >-=-=-=-=-=- > >Modified files: >
This was there so that we could obey USE_INET6... >-#if 0 >-/* From the Makefile */ > /* Define to 1 to include DHCPv6 support. */ > #define DHCPv6 1 >-#endif > This is definitely wrong, and should be based on <sys/endian.h> >+/* 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 >+# if defined __BIG_ENDIAN__ >+# define WORDS_BIGENDIAN 1 >+# endif >+#else >+# ifndef WORDS_BIGENDIAN >+/* # undef WORDS_BIGENDIAN */ >+# endif >+#endif christos