summaryrefslogtreecommitdiff
path: root/rtcm.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2005-07-25 03:37:38 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2005-07-25 03:37:38 +0000
commitce984b2182ba2a5aeb58d382313ada84af16c00d (patch)
tree5137c9e985a01b5ad96d9b5f4937aed1553a7943 /rtcm.c
parentf6367a5327212ffd0958733a8970966bc1e34fb5 (diff)
downloadgpsd-ce984b2182ba2a5aeb58d382313ada84af16c00d.tar.gz
At least on OpenBSD, endian.h is in /usr/include/sys
Other developers, please check to see if your <endian.h> is just a pointer to <sys/endian.h> and if it is, we can kill off this ifdef...
Diffstat (limited to 'rtcm.c')
-rw-r--r--rtcm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/rtcm.c b/rtcm.c
index 5a1b7dec..60cb8154 100644
--- a/rtcm.c
+++ b/rtcm.c
@@ -86,7 +86,11 @@ Starlink's website.
#include <string.h>
#include <stdbool.h>
#include <stdio.h>
+#if defined(__OpenBSD__)
+#include <sys/endian.h>
+#else
#include <endian.h>
+#endif
#include "gpsd.h"