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 /gpsd.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 'gpsd.c')
-rw-r--r-- | gpsd.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -9,7 +9,8 @@ #ifdef __linux__ /* FreeBSD chokes on this */ /* nice() needs _XOPEN_SOURCE, 500 means X/Open 1995 */ -#define _XOPEN_SOURCE 500 +/* Ubuntu isfinite() needs _XOPEN_SOURCE, 600 means X/Open 2004 */ +#define _XOPEN_SOURCE 600 /* setgroups() needs _DEFAULT_SOURCE or _BSD_SOURCE (glibc-dependent) */ #define _DEFAULT_SOURCE #define _BSD_SOURCE @@ -20,9 +21,6 @@ /* 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() */ |