summaryrefslogtreecommitdiff
path: root/gps2udp.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2014-08-18 05:42:00 -0400
committerEric S. Raymond <esr@thyrsus.com>2014-08-18 05:42:00 -0400
commit80fe8fa98b266a1585afdaab3c5bf3f49c2963b9 (patch)
tree5dba162b267a3b31217de73de0547b6c00b30cb5 /gps2udp.c
parentcaf45e635c8a3f2446a19b77e7842030ec10d2de (diff)
downloadgpsd-80fe8fa98b266a1585afdaab3c5bf3f49c2963b9.tar.gz
Include <sys/select.h> everywhere fd_set us used.
This came up in connection with Android. According to SuS this shouln't be necessary if sys/time.h was included, but oh well. While we;re at it, rearrange some includes for more consistent order. All regression tests pass.
Diffstat (limited to 'gps2udp.c')
-rw-r--r--gps2udp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gps2udp.c b/gps2udp.c
index d652d0a5..4eb8b48f 100644
--- a/gps2udp.c
+++ b/gps2udp.c
@@ -11,8 +11,6 @@
* BSD terms apply: see the file COPYING in the distribution root for details.
*
*/
-#include <sys/types.h>
-#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
@@ -22,8 +20,11 @@
#include <fcntl.h>
#include <termios.h>
#include <time.h>
-#include <sys/time.h>
#include <assert.h>
+#include <sys/time.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <sys/select.h>
#ifndef S_SPLINT_S
#include <unistd.h>