diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-11-08 00:06:56 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-11-08 00:06:56 -0500 |
commit | e126711d710ad6dbbaf83021b3b49f60a9c52994 (patch) | |
tree | 93115683a80418bc8fbd79d5a24e305574e3f868 /driver_rtcm2.c | |
parent | ddf4f507707e642dc59bfb470bf66f1535e441b2 (diff) | |
download | gpsd-e126711d710ad6dbbaf83021b3b49f60a9c52994.tar.gz |
Another whack at in-compiler endianness setup.
All regression tests oass, PPS is live.
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 |