diff options
author | Gary E. Miller <gem@rellim.com> | 2012-04-06 12:14:42 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2012-04-06 12:14:42 -0700 |
commit | 615d3eb14ea4833ce38ea89ec385308f4f679b33 (patch) | |
tree | 70197144feb4525935090a16f5fbe54aa595d365 /gpsutils.c | |
parent | d528aa7bdcfd262fc9394ad9e71303f7811f7dbc (diff) | |
download | gpsd-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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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> |