From 3172ab8ff97aab005d7734627409faa166174232 Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Fri, 26 Feb 2021 10:26:56 +0000 Subject: [PATCH] Fix endian.h location on FreeBSD --- src/google/protobuf/io/coded_stream.h | 2 ++ src/google/protobuf/stubs/port.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/google/protobuf/io/coded_stream.h b/src/google/protobuf/io/coded_stream.h index df8c4499ad7f..dcbb7834a7e8 100644 --- a/src/google/protobuf/io/coded_stream.h +++ b/src/google/protobuf/io/coded_stream.h @@ -133,6 +133,8 @@ #else #ifdef __APPLE__ #include // __BYTE_ORDER +#elif defined(__FreeBSD__) +#include // __BYTE_ORDER #else #include // __BYTE_ORDER #endif diff --git a/src/google/protobuf/stubs/port.h b/src/google/protobuf/stubs/port.h index b7aab404ca07..0f3b5aa628cf 100644 --- a/src/google/protobuf/stubs/port.h +++ b/src/google/protobuf/stubs/port.h @@ -59,6 +59,8 @@ #else #ifdef __APPLE__ #include // __BYTE_ORDER +#elif defined(__FreeBSD__) +#include // __BYTE_ORDER #else #include // __BYTE_ORDER #endif