diff --git a/src/osgPlugins/osc/osc/OscHostEndianness.h b/src/osgPlugins/osc/osc/OscHostEndianness.h index ca52b930f..3720ea63f 100644 --- a/src/osgPlugins/osc/osc/OscHostEndianness.h +++ b/src/osgPlugins/osc/osc/OscHostEndianness.h @@ -60,6 +60,15 @@ #else #error Unknown machine endianness detected. #endif + #elif defined(__FreeBSD__) + #include + #if (_BYTE_ORDER == _LITTLE_ENDIAN) + #define __LITTLE_ENDIAN__ + #elif (_BYTE_ORDER == _BIG_ENDIAN) + #define __BIG_ENDIAN__ + #else + #error Unknown machine endianness detected. + #endif #endif #if defined(__LITTLE_ENDIAN__) @@ -74,7 +83,7 @@ #else - #error please edit OSCHostEndianness.h to configure endianness + #error please edit OscHostEndianness.h to configure endianness #endif