mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
c9da3035de
- Update MASTER_SITES - Add license [1] - Switch to outsource cmake build - Add missing NVTT, GTA and QT4 options - Remove ITK option - Some pathes were integrated upstream PR: 185227 [1] Submitted by: Hardy Schumacher <hardy.schumacher@gmx.de> [1]
30 lines
913 B
C
30 lines
913 B
C
Index: src/osgPlugins/osc/osc/OscHostEndianness.h
|
|
===================================================================
|
|
--- src/osgPlugins/osc/osc/OscHostEndianness.h (revision 13802)
|
|
+++ src/osgPlugins/osc/osc/OscHostEndianness.h (working copy)
|
|
@@ -60,6 +60,15 @@
|
|
#else
|
|
#error Unknown machine endianness detected.
|
|
#endif
|
|
+ #elif defined(__FreeBSD__)
|
|
+ #include <sys/endian.h>
|
|
+ #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
|
|
|