[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] [PATCH] fix missing strptime prototype
From: |
Gary E. Miller |
Subject: |
Re: [gpsd-dev] [PATCH] fix missing strptime prototype |
Date: |
Fri, 6 Apr 2012 12:15:49 -0700 |
Yo Mike!
Thanks. Applied to git head.
On Fri, 6 Apr 2012 15:08:25 -0400
Mike Frysinger <address@hidden> wrote:
> The strptime prototype is not provided unless explicitly requested.
> So add the define that POSIX says to to avoid:
>
> gpsutils.c: In function 'iso8601_to_unix':
> gpsutils.c:340:14: warning: implicit declaration of function
> 'strptime' [-Wimplicit-function-declaration] gpsutils.c:340:17:
> warning: assignment makes pointer from integer without a cast
> [enabled by default]
>
> Signed-off-by: Mike Frysinger <address@hidden>
> ---
> gpsutils.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/gpsutils.c b/gpsutils.c
> index a1530ec..cc47d52 100644
> --- a/gpsutils.c
> +++ b/gpsutils.c
> @@ -3,6 +3,8 @@
> * This file is Copyright (c) 2010 by the GPSD project
> * BSD terms apply: see the file COPYING in the distribution root
> for details. */
> +#define _XOPEN_SOURCE
> +
> #include <stdio.h>
> #include <time.h>
> #include <sys/time.h>
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97701
address@hidden Tel:+1(541)382-8588
signature.asc
Description: PGP signature