diff options
author | Gary E. Miller <gem@rellim.com> | 2016-08-15 19:57:10 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2016-08-15 19:57:10 -0700 |
commit | cca1925d25094f2a0b5f4ef5e564708fa876c5af (patch) | |
tree | 58e1601fcf5069a5987d008978fd0adde6698107 | |
parent | aca3818fad3843ae89d3199d82f7bd6dbce41330 (diff) | |
download | gpsd-cca1925d25094f2a0b5f4ef5e564708fa876c5af.tar.gz |
C99 requires _XOPEN_SOURCE 500 for M_LN2
-rw-r--r-- | driver_tsip.c | 5 | ||||
-rw-r--r-- | driver_zodiac.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/driver_tsip.c b/driver_tsip.c index 5e09433b..c87a1064 100644 --- a/driver_tsip.c +++ b/driver_tsip.c @@ -12,6 +12,11 @@ * This file is Copyright (c) 2010 by the GPSD project * BSD terms apply: see the file COPYING in the distribution root for details. */ + +/* 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 + #include <sys/time.h> /* for select() */ #include <string.h> #include <stdio.h> diff --git a/driver_zodiac.c b/driver_zodiac.c index 65f76f0b..b14ffa63 100644 --- a/driver_zodiac.c +++ b/driver_zodiac.c @@ -9,6 +9,11 @@ * This file is Copyright (c) 2010 by the GPSD project * BSD terms apply: see the file COPYING in the distribution root for details. */ + +/* 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 + #include <stdio.h> #include <stdbool.h> #include <string.h> |