summaryrefslogtreecommitdiff
path: root/gpsd.h
diff options
context:
space:
mode:
authorFred Wright <fw@fwright.net>2019-03-13 19:59:35 -0700
committerFred Wright <fw@fwright.net>2019-03-18 19:45:25 -0700
commita36a199e2d5721fd019385e29610f5e43b39c388 (patch)
tree938e432f4dd079faa7edf4b418d9863276f6d6f4 /gpsd.h
parent7722705676a8c7d52c612057de241167459b9e33 (diff)
downloadgpsd-a36a199e2d5721fd019385e29610f5e43b39c388.tar.gz
gpsd.h: Adds missing include for fd_set.
For some reason this was only causing trouble on OpenBSD. TESTED: (With subsequent fixes included) Ran "build-all check" on Mac Pro 10.9, Mac Pro 10.14, MacBook Pro 10.9, PowerBook 10.5, VMs for OSX 10.5-10.13, Ubuntu 14.04, CentOS 7, Fedora 25, FreeBSD 10.3, OpenBSD 5.6, OpenBSD 5.6 32-bit, NetBSD 6.1.5, and Beaglebone (arm) Debian 7.
Diffstat (limited to 'gpsd.h')
-rw-r--r--gpsd.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gpsd.h b/gpsd.h
index 1ea2b27e..84641441 100644
--- a/gpsd.h
+++ b/gpsd.h
@@ -22,8 +22,10 @@ extern "C" {
#include <termios.h>
#endif
#ifdef HAVE_WINSOCK2_H
-#include <winsock2.h> /* for fd_set */
-#endif
+#include <winsock2.h> /* for fd_set */
+#else /* !HAVE_WINSOCK2_H */
+#include <sys/select.h> /* for fd_set */
+#endif /* !HAVE_WINSOCK2_H */
#include <time.h> /* for time_t */
#include "gps.h"