diff --git a/base/include/android-base/endian.h b/base/include/android-base/endian.h index 2d0f614ea..8fa6365ee 100644 --- a/base/include/android-base/endian.h +++ b/base/include/android-base/endian.h @@ -51,8 +51,10 @@ /* macOS has some of the basics. */ #include #else -/* Windows has even less. */ +/* Windows has some of the basics as well. */ #include +#include +/* winsock2.h *must* be included before the following four macros. */ #define htons(x) __builtin_bswap16(x) #define htonl(x) __builtin_bswap32(x) #define ntohs(x) __builtin_bswap16(x)