commit | 81b4aadb4857f351915b6fc215a73baacc90d22a | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Thu Sep 15 13:57:19 2016 -0700 |
committer | Josh Gao <jmgao@google.com> | Thu Sep 15 14:21:28 2016 -0700 |
tree | 4feafe9799203ca6d472d20bb8488bf40f0a6857 | |
parent | cb728e6f63e90405223e2a72f119967368f78b7a [diff] |
Fix BYTE_ORDER check in <netinet/ip6.h>. Neither BYTE_ORDER nor BIG_ENDIAN were being defined anywhere, so they were defaulting to zero, leading to BIG_ENDIAN values being used. Bug: http://b/31496165 Change-Id: Ic6089895f39b86e7762bdb5b7d5b01feb0d2fd17
diff --git a/libc/include/netinet/ip6.h b/libc/include/netinet/ip6.h index 639637e..fcfd5d6 100644 --- a/libc/include/netinet/ip6.h +++ b/libc/include/netinet/ip6.h
@@ -66,6 +66,7 @@ #include <sys/cdefs.h> #include <sys/types.h> +#include <endian.h> #include <linux/in6.h>