From 16372e46d25ad453997f2dfb80ad39098925faf4 Mon Sep 17 00:00:00 2001 From: Sears Russell Date: Mon, 30 Nov 2009 19:38:35 +0000 Subject: [PATCH] fix warning + problem with tdestroy() detection --- src/stasis/tsearchcompat.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/stasis/tsearchcompat.c b/src/stasis/tsearchcompat.c index 3675557..26390d7 100644 --- a/src/stasis/tsearchcompat.c +++ b/src/stasis/tsearchcompat.c @@ -5,6 +5,7 @@ * Author: sears */ #define _GNU_SOURCE +#include #include #include #include @@ -54,7 +55,10 @@ const void * compat_rbsearch(const void * key, rbtree * tp) { void** ret = (void**)tsearch(key, &(t->root), t->cmp); return ret ? *ret : 0; } +#ifdef HAVE_TDESTROY static void noop_free(void* node) {} +#endif + void compat_rbdestroy(rbtree * tp) { compat_rbtree* t = (compat_rbtree*)tp; if(t->root) {