update to latest upstream
[openadk.git] / package / miredo / patches / patch-libteredo_maintain_c
bloba98fba00be69f6c36b1fed8ffe90d580e81ace08
1 $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
2 --- miredo-1.1.6.orig/libteredo/maintain.c      2009-04-13 11:15:15.000000000 +0200
3 +++ miredo-1.1.6/libteredo/maintain.c   2009-05-10 18:21:51.000000000 +0200
4 @@ -56,6 +56,7 @@
5  #include "maintain.h"
6  #include "v4global.h" // is_ipv4_global_unicast()
7  #include "debug.h"
8 +#define pthread_condattr_setclock( a, c ) (((c) != CLOCK_REALTIME) ? EINVAL : 0)
9  
10  static inline void gettime (struct timespec *now)
11  {
12 @@ -63,7 +64,6 @@ static inline void gettime (struct times
13         if (clock_gettime (CLOCK_MONOTONIC, now) == 0)
14                 return;
15  #else
16 -# define pthread_condattr_setclock( a, c ) (((c) != CLOCK_REALTIME) ? EINVAL : 0)
17  # ifndef CLOCK_MONOTONIC
18  #  define CLOCK_MONOTONIC CLOCK_REALTIME
19  # endif