69cf03c488aa7601e3d4cc9e270df5fbcf80c344
[packages.git] / net / gpsd / patches / 0001-_XOPEN_SOURCE-breaks-CLOCK_REALTIME-in-uclibc.patch
1 From c7a6bf126c17e997428ee925aad62b2fd70dc316 Mon Sep 17 00:00:00 2001
2 From: Dave Taht <dave.taht@bufferbloat.net>
3 Date: Fri, 13 Apr 2012 23:14:06 -0700
4 Subject: [PATCH] _XOPEN_SOURCE breaks CLOCK_REALTIME in uclibc
5
6 Since you can't tell what library you are using...
7 until after you include features.h
8 which after you would set _XOPEN_SOURCE
9 and if you set _XOPEN_SOURCE you can't re-include features.h
10 we have a recursive dependency.
11
12 I have no idea how to handle this, so I'll just carry a patch
13 in openwrt.
14 ---
15  gpsutils.c |    4 ----
16  1 files changed, 0 insertions(+), 4 deletions(-)
17
18 diff --git a/gpsutils.c b/gpsutils.c
19 index 60c4ae9..95ab456 100644
20 --- a/gpsutils.c
21 +++ b/gpsutils.c
22 @@ -4,10 +4,6 @@
23   * BSD terms apply: see the file COPYING in the distribution root for details.
24   */
25  
26 -/* The strptime prototype is not provided unless explicitly requested.
27 - *  So add the define that POSIX says to to avoid: */
28 -#define _XOPEN_SOURCE
29 -
30  #include <stdio.h>
31  #include <time.h>
32  #include <sys/time.h>
33 -- 
34 1.7.5.4
35