diff options
author | Gary E. Miller <gem@rellim.com> | 2018-02-13 12:24:32 -0800 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-02-13 12:24:32 -0800 |
commit | a34a766c689d2910935f26b9e4f9d4801903623b (patch) | |
tree | b4116bb4d099e46c1d5cb7ec16dee0e759fc5767 /libgps_json.c | |
parent | e6b037fd3db99ab9c23419769f923c861158dbe2 (diff) | |
download | gpsd-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.c | 3 |
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> |