diff options
Diffstat (limited to 'driver_rtcm2.c')
-rw-r--r-- | driver_rtcm2.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/driver_rtcm2.c b/driver_rtcm2.c index 5c8532e1..91a66861 100644 --- a/driver_rtcm2.c +++ b/driver_rtcm2.c @@ -73,10 +73,11 @@ BSD terms apply: see the file COPYING in the distribution root for details. #ifdef __LITTLE_ENDIAN__ #undef WORDS_BIGENDIAN #else -#ifdef BSD -#include <sys/endian.h> -#else +#ifdef __linux__ #include <endian.h> +#else +/* usual BSD location */ +#include <sys/endian.h> #endif #if __BYTE_ORDER == __BIG_ENDIAN #define WORDS_BIGENDIAN 1 |