summaryrefslogtreecommitdiff
path: root/libgps_json.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 /libgps_json.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 'libgps_json.c')
-rw-r--r--libgps_json.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgps_json.c b/libgps_json.c
index 5b285142..a99a8f01 100644
--- a/libgps_json.c
+++ b/libgps_json.c
@@ -14,6 +14,9 @@ PERMISSIONS
***************************************************************************/
+/* some distros don't include isfinite() without next line */
+#define _POSIX_C_SOURCE 200112L
+
#include <stdbool.h>
#include <math.h>
#include <string.h>