]> git.sesse.net Git - vlc/blobdiff - include/vlc_fixups.h
compat: implement tdestroy (GNU extension not available on OpenBSD).
[vlc] / include / vlc_fixups.h
index e0ebdb01745c75908c5e24a31651f697e2788461..3512029d9c0051630c0fcbff16c202a4cfa3e185 100644 (file)
@@ -204,4 +204,9 @@ static inline locale_t newlocale(int mask, const char * locale, locale_t base)
 void swab (const void *, void *, ssize_t);
 #endif
 
+#ifndef HAVE_TDESTROY
+typedef void (*__free_fn_t) (void *__nodep);
+void tdestroy (void *vroot, __free_fn_t freefct);
+#endif
+
 #endif /* !LIBVLC_FIXUPS_H */