diff options
author | Gary E. Miller <gem@rellim.com> | 2018-12-27 13:17:46 -0800 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-12-27 13:17:46 -0800 |
commit | e9c69f0b5f95599277857b4899e75ea1f4f4ddf4 (patch) | |
tree | 3f7f11aba0b283e62dbaa984bd5f253318e86312 /gpsutils.c | |
parent | 1998c0301f6f9542bf5dd51e8d18f3d7f4e76023 (diff) | |
download | gpsd-e9c69f0b5f95599277857b4899e75ea1f4f4ddf4.tar.gz |
gpsutils: need to include <sys/select.h> for POSIX
SuS and POSIX have different idea on where pselect() prototype
lives.
Diffstat (limited to 'gpsutils.c')
-rw-r--r-- | gpsutils.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -15,15 +15,16 @@ #define _POSIX_C_SOURCE 200112L #endif +#include <ctype.h> +#include <errno.h> +#include <math.h> #include <stdio.h> -#include <time.h> -#include <sys/time.h> #include <stdlib.h> #include <string.h> -#include <math.h> -#include <errno.h> -#include <ctype.h> -#include <sys/time.h> /* expected to have a pselect(2) prototype a la SuS */ +#include <sys/select.h> /* for to have a pselect(2) prototype a la POSIX */ +#include <sys/time.h> +#include <sys/time.h> /* for to have a pselect(2) prototype a la SuS */ +#include <time.h> #include "gps.h" #include "libgps.h" |