summaryrefslogtreecommitdiff
path: root/gpsmon.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2018-12-26 13:23:04 -0500
committerEric S. Raymond <esr@thyrsus.com>2018-12-26 13:23:04 -0500
commit5517175ed53b877720fdf5a1a4085386b40c4590 (patch)
tree31c1ce53dea117cfb36a1e7d679cb785b32abdf8 /gpsmon.c
parentc9e81aabcf2f5c6886be1fd0e859ceb63470e06f (diff)
downloadgpsd-5517175ed53b877720fdf5a1a4085386b40c4590.tar.gz
Eliminate effectively all uses of struct timeval.
Outide of one Mac portability shim, anyway. Associated select(2) calls become pselect(2) calls.
Diffstat (limited to 'gpsmon.c')
-rw-r--r--gpsmon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsmon.c b/gpsmon.c
index ed1e33b6..ff2a54dd 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -20,7 +20,7 @@
#include <stdarg.h>
#include <time.h>
#include <math.h>
-#include <sys/time.h> /* expected to declare select(2) a la SuS */
+#include <sys/time.h> /* expected to declare pselect(2) a la SuS */
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/select.h>
@@ -1492,7 +1492,7 @@ int main(int argc, char **argv)
explanation = NULL;
switch (bailout) {
case TERM_SELECT_FAILED:
- explanation = "select(2) failed\n";
+ explanation = "pselect(2) failed\n";
break;
case TERM_DRIVER_SWITCH:
explanation = "Driver type switch failed\n";