summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-02-13 12:24:32 -0800
committerGary E. Miller <gem@rellim.com>2018-02-13 12:24:32 -0800
commita34a766c689d2910935f26b9e4f9d4801903623b (patch)
treeb4116bb4d099e46c1d5cb7ec16dee0e759fc5767 /gpsd.c
parente6b037fd3db99ab9c23419769f923c861158dbe2 (diff)
downloadgpsd-a34a766c689d2910935f26b9e4f9d4801903623b.tar.gz
isfinite(): add define for POSIX 2011L
Almost 20 years after C99, Ubuntu still does not use it as default...
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gpsd.c b/gpsd.c
index ac6ce5d5..a6251b93 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -20,6 +20,9 @@
/* strlcpy() needs _DARWIN_C_SOURCE */
#define _DARWIN_C_SOURCE
+/* some distros don't include isfinite() without next line */
+#define _POSIX_C_SOURCE 200112L
+
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/time.h> /* for select() */