Handle isnan from cmath on NetBSD like on Darwin.
[pkgsrcv2.git] / geography / libchamplain08 / patches / patch-ab
1 $NetBSD$
2
3 GTimeVal->tv_sec is glong
4
5 --- champlain/champlain-network-tile-source.c.orig      2011-03-30 21:41:54.000000000 +0000
6 +++ champlain/champlain-network-tile-source.c
7 @@ -680,6 +680,7 @@ static gchar *
8  get_modified_time_string (ChamplainTile *tile)
9  {
10    const GTimeVal *time;
11 +  time_t t;
12  
13    g_return_val_if_fail (CHAMPLAIN_TILE (tile), NULL);
14  
15 @@ -688,7 +689,8 @@ get_modified_time_string (ChamplainTile 
16    if (time == NULL)
17      return NULL;
18  
19 -  struct tm *other_time = gmtime (&time->tv_sec);
20 +  t = time->tv_sec;
21 +  struct tm *other_time = gmtime (&t);
22    char value[100];
23  
24  #ifdef G_OS_WIN32