summaryrefslogtreecommitdiff
path: root/timebase.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-08-15 21:28:35 -0700
committerGary E. Miller <gem@rellim.com>2016-08-15 21:28:35 -0700
commit558586bc99a8f57ee42f0597f52232cd1ee8900b (patch)
tree8819259a94abab70ebf6fa40ea97e77388b0cd82 /timebase.c
parent2a72002fa58217fbd0b61d861fba5ef29e575213 (diff)
downloadgpsd-558586bc99a8f57ee42f0597f52232cd1ee8900b.tar.gz
putenv() needs _XOPEN_SOURCE
Diffstat (limited to 'timebase.c')
-rw-r--r--timebase.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/timebase.c b/timebase.c
index b2e79394..227736d0 100644
--- a/timebase.c
+++ b/timebase.c
@@ -190,6 +190,9 @@ BSD terms apply: see the file COPYING in the distribution root for details.
*****************************************************************************/
+/* putenv() needs _XOPEN_SOURCE, 500 means X/Open 1995 */
+#define _XOPEN_SOURCE 500
+
#include <stdlib.h>
#include <string.h>
#include <ctype.h>