[vlc-commits] commit: tdestroy: fix compilation for system that does have search. h but not tdestroy. (=?UTF-8?Q?R=C3=A9mi=20Duraffort=20?=)

git at videolan.org git at videolan.org
Mon Dec 6 17:54:03 CET 2010


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | 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



More information about the vlc-commits mailing list