summaryrefslogtreecommitdiff
path: root/gpsutils.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-12-27 13:17:46 -0800
committerGary E. Miller <gem@rellim.com>2018-12-27 13:17:46 -0800
commite9c69f0b5f95599277857b4899e75ea1f4f4ddf4 (patch)
tree3f7f11aba0b283e62dbaa984bd5f253318e86312 /gpsutils.c
parent1998c0301f6f9542bf5dd51e8d18f3d7f4e76023 (diff)
downloadgpsd-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.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/gpsutils.c b/gpsutils.c
index 8b855855..deb64a6d 100644
--- a/gpsutils.c
+++ b/gpsutils.c
@@ -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"