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 @@
# 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
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