vlc | branch: master | Rémi Duraffort <[email protected]> | Mon Dec 6 17:51:54 2010 +0100| [1d69914ecef64593051f5ca807f7c314423e9230] | committer: Rémi Duraffort
tdestroy: fix compilation for system that does have search.h but not tdestroy. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1d69914ecef64593051f5ca807f7c314423e9230 --- compat/tdestroy.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/compat/tdestroy.c b/compat/tdestroy.c index 04a1acb..ecd3171 100644 --- a/compat/tdestroy.c +++ b/compat/tdestroy.c @@ -17,6 +17,9 @@ # include <config.h> #endif +// Do not implement tdestroy if that's the only missing t* function +#ifndef HAVE_SEARCH_H + #include <sys/cdefs.h> #include <assert.h> #include <stdlib.h> @@ -44,3 +47,5 @@ tdestroy(vrootp, freefct) if (root != NULL) trecurse(root, freefct); } + +#endif _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
