Commit 1d69914e authored by Rémi Duraffort's avatar Rémi Duraffort

tdestroy: fix compilation for system that does have search.h but not tdestroy.

parent c489a903
...@@ -17,6 +17,9 @@ ...@@ -17,6 +17,9 @@
# include <config.h> # include <config.h>
#endif #endif
// Do not implement tdestroy if that's the only missing t* function
#ifndef HAVE_SEARCH_H
#include <sys/cdefs.h> #include <sys/cdefs.h>
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -44,3 +47,5 @@ tdestroy(vrootp, freefct) ...@@ -44,3 +47,5 @@ tdestroy(vrootp, freefct)
if (root != NULL) if (root != NULL)
trecurse(root, freefct); trecurse(root, freefct);
} }
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment