diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2014-08-18 05:42:00 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2014-08-18 05:42:00 -0400 |
commit | 80fe8fa98b266a1585afdaab3c5bf3f49c2963b9 (patch) | |
tree | 5dba162b267a3b31217de73de0547b6c00b30cb5 /libgps_sock.c | |
parent | caf45e635c8a3f2446a19b77e7842030ec10d2de (diff) | |
download | gpsd-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 'libgps_sock.c')
-rw-r--r-- | libgps_sock.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libgps_sock.c b/libgps_sock.c index c7f706ad..015a2f17 100644 --- a/libgps_sock.c +++ b/libgps_sock.c @@ -16,6 +16,7 @@ #include <sys/time.h> /* expected to have a select(2) prototype a la SuS */ #include <sys/types.h> #include <sys/stat.h> +#include <sys/select.h> #ifndef S_SPLINT_S #include <sys/socket.h> #include <unistd.h> |