diff options
author | Gary E. Miller <gem@rellim.com> | 2018-02-13 14:33:02 -0800 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-02-13 14:33:02 -0800 |
commit | 8138b291d064af5dc194d089ae99edcdf9fa540c (patch) | |
tree | 02017a9ca64b15dfdea201408cf96e6c5070a80e /libgps_json.c | |
parent | a34a766c689d2910935f26b9e4f9d4801903623b (diff) | |
download | gpsd-8138b291d064af5dc194d089ae99edcdf9fa540c.tar.gz |
isfinite(): Another try at getting Ubuntu to see isfinite()
Their man page says _POSIX_C_SOURCE >= 200112L should work. It did
not.
Diffstat (limited to 'libgps_json.c')
-rw-r--r-- | libgps_json.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libgps_json.c b/libgps_json.c index a99a8f01..ee3a5ded 100644 --- a/libgps_json.c +++ b/libgps_json.c @@ -14,8 +14,9 @@ PERMISSIONS ***************************************************************************/ -/* some distros don't include isfinite() without next line */ -#define _POSIX_C_SOURCE 200112L +/* Ubuntu isfinite() needs _XOPEN_SOURCE, 600 means X/Open 2004 */ +/* Ubuntu man page says _POSIX_C_SOURCE 200112L should work, it fails */ +#define _XOPEN_SOURCE 600 #include <stdbool.h> #include <math.h> |