summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-01-25 05:13:32 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-01-25 05:13:32 -0500
commita701759ea555821922cac75bd849c562a901a041 (patch)
tree72e8a13c87f1ecc773a8f4b2fcedd934472a1de4 /gpsd.c
parent8d9ffa83f09064fb70d206e65769c127b48fea9a (diff)
downloadgpsd-a701759ea555821922cac75bd849c562a901a041.tar.gz
SIOCOUTQ build fix required for older Ubuntu versions.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gpsd.c b/gpsd.c
index c5e95bd1..0c9fe658 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -42,7 +42,8 @@
#include <unistd.h>
#endif /* S_SPLINT_S */
#ifdef __linux__
-#include <linux/sockios.h>
+#include <sys/ioctl.h> /* needed for ioctl(SIOCOUTQ) */
+#include <linux/sockios.h> /* needed for ioctl(SIOCOUTQ) */
#endif /* __linux__ */
#include "gpsd_config.h"