[package] update miredo to 1.1.6 (#5204)
[openwrt/svn-archive/archive.git] / net / miredo / patches / 100-uclibc.patch
1 diff -urN miredo-1.1.6/libteredo/maintain.c miredo-1.1.6.new/libteredo/maintain.c
2 --- miredo-1.1.6/libteredo/maintain.c 2009-04-13 11:15:15.000000000 +0200
3 +++ miredo-1.1.6.new/libteredo/maintain.c 2009-05-26 16:37:14.000000000 +0200
4 @@ -59,7 +59,7 @@
5
6 static inline void gettime (struct timespec *now)
7 {
8 -#if (_POSIX_CLOCK_SELECTION - 0 >= 0) && (_POSIX_MONOTONIC_CLOCK - 0 >= 0)
9 +#if (_POSIX_CLOCK_SELECTION - 0 >= 0) && (_POSIX_MONOTONIC_CLOCK - 0 >= 0) && !defined(__UCLIBC__)
10 if (clock_gettime (CLOCK_MONOTONIC, now) == 0)
11 return;
12 #else