b169202106946f543536943dd03074140c683d2f
[openwrt/svn-archive/archive.git] / net / miredo / patches / 100-uclibc.patch
1 Index: miredo-1.0.0/libteredo/maintain.c
2 ===================================================================
3 --- miredo-1.0.0.orig/libteredo/maintain.c 2007-12-30 16:39:41.032377076 +0100
4 +++ miredo-1.0.0/libteredo/maintain.c 2007-12-30 16:39:54.569148495 +0100
5 @@ -62,7 +62,7 @@
6 #define PROBE_SYMMETRIC 3
7 #define NOT_RUNNING (-1)
8
9 -#if (_POSIX_CLOCK_SELECTION - 0 >= 0) && (_POSIX_MONOTONIC_CLOCK - 0 >= 0)
10 +#if (_POSIX_CLOCK_SELECTION - 0 >= 0) && (_POSIX_MONOTONIC_CLOCK - 0 >= 0) && !defined(__UCLIBC__)
11 static inline void gettime (struct timespec *now)
12 {
13 if (clock_gettime (CLOCK_MONOTONIC, now))