Fix test-multithread build on FreeBSD (#1217)
authorlantw44 <lantw44@gmail.com>
Wed, 3 Oct 2018 15:22:43 +0000 (23:22 +0800)
committerEbrahim Byagowi <ebrahim@gnu.org>
Wed, 3 Oct 2018 15:22:43 +0000 (18:52 +0330)
Add the default font path used by FreeBSD ports.

test/api/test-multithread.c

index e1e7eb5..508dd39 100644 (file)
@@ -37,6 +37,8 @@ static const char *text = "طرح‌نَما";
 static const char *path =
 #if defined(__linux__)
                "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf";
+#elif defined(__FreeBSD__)
+               "/usr/local/share/fonts/dejavu/DejaVuSans.ttf";
 #elif defined(_WIN32) || defined(_WIN64)
                "C:\\Windows\\Fonts\\tahoma.ttf";
 #elif __APPLE__