Skip to content

Commit bffe626

Browse files
committed
Handle endianess on FreeBSD properly
1 parent 7250222 commit bffe626

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/osmium/util/endian.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ DEALINGS IN THE SOFTWARE.
3535

3636
// Windows is only available for little endian architectures
3737
// http://stackoverflow.com/questions/6449468/can-i-safely-assume-that-windows-installations-will-always-be-little-endian
38-
#if !defined(_WIN32) && !defined(__APPLE__)
38+
#if defined(__FreeBSD__)
39+
# include <sys/endian.h>
40+
#elif !defined(_WIN32) && !defined(__APPLE__)
3941
# include <endian.h>
4042
#else
4143
# define __LITTLE_ENDIAN 1234

0 commit comments

Comments
 (0)