Fix endian.h location on FreeBSD

pull/8362/head
Po-Chuan Hsieh 4 years ago committed by Adam Cozzette
parent a4e7b97bd6
commit 3172ab8ff9
  1. 2
      src/google/protobuf/io/coded_stream.h
  2. 2
      src/google/protobuf/stubs/port.h

@ -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

@ -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

Loading…
Cancel
Save