From c7a070a9e6a5a50adc18ed3502438ef2e7832712 Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Mon, 10 Oct 2011 11:42:51 +0000 Subject: [PATCH] [backfire/packages] tokyocabinet: remove uClibc compat patch We have the needed math support in source:branches/backfire/toolchain/uClibc/patches-0.9.30.1/150-c99_ldbl_math.patch SVN-Revision: 28401 --- .../patches/200-uclibc_0.9.30_compat.patch | 29 ------------------- 1 file changed, 29 deletions(-) delete mode 100644 libs/tokyocabinet/patches/200-uclibc_0.9.30_compat.patch diff --git a/libs/tokyocabinet/patches/200-uclibc_0.9.30_compat.patch b/libs/tokyocabinet/patches/200-uclibc_0.9.30_compat.patch deleted file mode 100644 index bf6a4346cf..0000000000 --- a/libs/tokyocabinet/patches/200-uclibc_0.9.30_compat.patch +++ /dev/null @@ -1,29 +0,0 @@ ---- a/tctdb.c -+++ b/tctdb.c -@@ -20,6 +20,26 @@ - #include "tctdb.h" - #include "myconf.h" - -+#ifdef __UCLIBC__ -+# include -+# if __UCLIBC_MINOR__ <= 9 && __UCLIBC_SUBLEVEL__ <= 30 -+ -+size_t strlen(const char *s); -+long double strtold(const char *nptr, char **endptr); -+static inline long double nanl(const char *tagp) -+{ -+ if (tagp[0] != '\0') { -+ char buf[6 + strlen(tagp)]; -+ sprintf(buf, "NAN(%s)", tagp); -+ return strtold(buf, NULL); -+ } -+ return NAN; -+} -+ -+# endif /* __UCLIBC_MINOR__ <= 9 && __UCLIBC_SUBLEVEL__ <= 30 */ -+#endif /* __UCLIBC__ */ -+ -+ - #define TDBOPAQUESIZ 64 // size of using opaque field - #define TDBLEFTOPQSIZ 64 // size of left opaque field - #define TDBPAGEBUFSIZ 32768 // size of a buffer to read each page -- 2.30.2