Skip to content

Commit 945bf3c

Browse files
RiversideSCcopybara-github
authored andcommitted
Fix build for newlib (#12501)
Fix includes for newlib Closes #12501 COPYBARA_INTEGRATE_REVIEW=#12501 from RiversideSC:main cfcc729 PiperOrigin-RevId: 525623814
1 parent a75c1a2 commit 945bf3c

File tree

1 file changed

+1
-1
lines changed
  • src/google/protobuf/stubs

1 file changed

+1
-1
lines changed

src/google/protobuf/stubs/port.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
#pragma runtime_checks("c", off)
6060
#endif
6161
#else
62-
#ifdef __APPLE__
62+
#if (defined(__APPLE__) || defined(_NEWLIB__))
6363
#include <machine/endian.h> // __BYTE_ORDER
6464
#elif defined(__FreeBSD__)
6565
#include <sys/endian.h> // __BYTE_ORDER

0 commit comments

Comments
 (0)