Skip to content

Commit

Permalink
Fix endian.h location on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
sunpoet authored and acozzette committed Mar 2, 2021
1 parent a4e7b97 commit 3172ab8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/google/protobuf/io/coded_stream.h
Expand Up @@ -133,6 +133,8 @@
#else
#ifdef __APPLE__
#include <machine/endian.h> // __BYTE_ORDER
#elif defined(__FreeBSD__)
#include <sys/endian.h> // __BYTE_ORDER
#else
#include <endian.h> // __BYTE_ORDER
#endif
Expand Down
2 changes: 2 additions & 0 deletions src/google/protobuf/stubs/port.h
Expand Up @@ -59,6 +59,8 @@
#else
#ifdef __APPLE__
#include <machine/endian.h> // __BYTE_ORDER
#elif defined(__FreeBSD__)
#include <sys/endian.h> // __BYTE_ORDER
#else
#include <endian.h> // __BYTE_ORDER
#endif
Expand Down

0 comments on commit 3172ab8

Please sign in to comment.