summaryrefslogtreecommitdiff
path: root/gpsutils.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2012-04-06 12:14:42 -0700
committerGary E. Miller <gem@rellim.com>2012-04-06 12:14:42 -0700
commit615d3eb14ea4833ce38ea89ec385308f4f679b33 (patch)
tree70197144feb4525935090a16f5fbe54aa595d365 /gpsutils.c
parentd528aa7bdcfd262fc9394ad9e71303f7811f7dbc (diff)
downloadgpsd-615d3eb14ea4833ce38ea89ec385308f4f679b33.tar.gz
The strptime prototype is not provided unless explicitly requested.
So add the define that POSIX says to to avoid. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'gpsutils.c')
-rw-r--r--gpsutils.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gpsutils.c b/gpsutils.c
index a1530ec5..60c4ae96 100644
--- a/gpsutils.c
+++ b/gpsutils.c
@@ -3,6 +3,11 @@
* This file is Copyright (c) 2010 by the GPSD project
* BSD terms apply: see the file COPYING in the distribution root for details.
*/
+
+/* The strptime prototype is not provided unless explicitly requested.
+ * So add the define that POSIX says to to avoid: */
+#define _XOPEN_SOURCE
+
#include <stdio.h>
#include <time.h>
#include <sys/time.h>