summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>