[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gpsd-dev] [PATCH] fix missing strptime prototype
From: |
Mike Frysinger |
Subject: |
[gpsd-dev] [PATCH] fix missing strptime prototype |
Date: |
Fri, 6 Apr 2012 15:08:25 -0400 |
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>
--
1.7.8.5
- [gpsd-dev] [PATCH] fix missing strptime prototype,
Mike Frysinger <=