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