packages/ipv6/miredo/patches/100-uclibc.patch
nbd e4e5ac09c1 miredo: add a missing #include to fix compile errors under uclibc 0.9.32
git-svn-id: svn://svn.openwrt.org/openwrt/packages@25297 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-01 21:41:45 +00:00

22 lines
551 B
Diff

--- a/libteredo/maintain.c
+++ b/libteredo/maintain.c
@@ -59,7 +59,7 @@
static inline void gettime (struct timespec *now)
{
-#if (_POSIX_CLOCK_SELECTION - 0 >= 0) && (_POSIX_MONOTONIC_CLOCK - 0 >= 0)
+#if (_POSIX_CLOCK_SELECTION - 0 >= 0) && (_POSIX_MONOTONIC_CLOCK - 0 >= 0) && !defined(__UCLIBC__)
if (clock_gettime (CLOCK_MONOTONIC, now) == 0)
return;
#else
--- a/libteredo/tunnel.h
+++ b/libteredo/tunnel.h
@@ -32,6 +32,7 @@
# define LIBTEREDO_TUNNEL_H
# include <stdbool.h>
+# include <ctype.h>
# ifdef __cplusplus
extern "C" {