Skip to content

Commit

Permalink
Fix build for newlib (#12501)
Browse files Browse the repository at this point in the history
Fix includes for newlib

Closes #12501

COPYBARA_INTEGRATE_REVIEW=#12501 from RiversideSC:main cfcc729
PiperOrigin-RevId: 525623814
  • Loading branch information
RiversideSC authored and Copybara-Service committed Apr 20, 2023
1 parent a75c1a2 commit 945bf3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/google/protobuf/stubs/port.h
Expand Up @@ -59,7 +59,7 @@
#pragma runtime_checks("c", off)
#endif
#else
#ifdef __APPLE__
#if (defined(__APPLE__) || defined(_NEWLIB__))
#include <machine/endian.h> // __BYTE_ORDER
#elif defined(__FreeBSD__)
#include <sys/endian.h> // __BYTE_ORDER
Expand Down

0 comments on commit 945bf3c

Please sign in to comment.