--- src/metadata/tfile_helper.cpp.orig	2008-08-14 13:24:07.000000000 -0400
+++ src/metadata/tfile_helper.cpp	2008-08-14 13:24:31.000000000 -0400
@@ -26,7 +26,7 @@
 #include <strings.h>
 #include <wchar.h>
 
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__FreeBSD__)
 int wcscasecmp(const wchar_t *s1, const wchar_t *s2)
 {
      int i;
