diff options
author | Gary E. Miller <gem@rellim.com> | 2016-08-16 12:58:25 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2016-08-16 12:58:25 -0700 |
commit | 0868e9c92ca3a26e2b64cb13ee3bcdb8e39da979 (patch) | |
tree | 69083cab98972e6642259209bbcf03789c24c126 | |
parent | 8bf402ded19608d4786d1f22b073f12d0257e7a1 (diff) | |
download | gpsd-0868e9c92ca3a26e2b64cb13ee3bcdb8e39da979.tar.gz |
If you specify XOPEN version, you must specify POSIX version.
This fixes 32-bit Gentoo on RasPi.
All regression tests pass.
-rw-r--r-- | driver_tsip.c | 2 | ||||
-rw-r--r-- | driver_zodiac.c | 2 | ||||
-rw-r--r-- | libgpsd_core.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/driver_tsip.c b/driver_tsip.c index c87a1064..34a53e83 100644 --- a/driver_tsip.c +++ b/driver_tsip.c @@ -16,6 +16,8 @@ /* if we insist on C99, then we need this to get M_LN2 from math.h */ /* 500 mean X/Open 1995 */ #define _XOPEN_SOURCE 500 +/* round() needs _POSIX_C_SOURCE >= 200112L */ +#define _POSIX_C_SOURCE 200112L #include <sys/time.h> /* for select() */ #include <string.h> diff --git a/driver_zodiac.c b/driver_zodiac.c index b14ffa63..e1ce407e 100644 --- a/driver_zodiac.c +++ b/driver_zodiac.c @@ -13,6 +13,8 @@ /* if we insisnt on C99, then we need this to get M_LN2 from math.h */ /* 500 means X/Open 1995 */ #define _XOPEN_SOURCE 500 +/* round() needs _POSIX_C_SOURCE >= 200112L */ +#define _POSIX_C_SOURCE 200112L #include <stdio.h> #include <stdbool.h> diff --git a/libgpsd_core.c b/libgpsd_core.c index 90743d72..41405ba5 100644 --- a/libgpsd_core.c +++ b/libgpsd_core.c @@ -12,6 +12,8 @@ /* getsid() needs _XOPEN_SOURCE, 500 means X/Open 1995 */ #define _XOPEN_SOURCE 500 +/* isfinite() and pselect() needs _POSIX_C_SOURCE >= 200112L */ +#define _POSIX_C_SOURCE 200112L #include <time.h> #include <stdio.h> |