--- gdk/broadway/gdkbroadway-server.c.orig	2015-01-11 02:16:39.000000000 +0000
+++ gdk/broadway/gdkbroadway-server.c	2015-01-15 16:05:21.146522552 +0000
@@ -542,7 +542,7 @@
   res = ftruncate (fd, size);
   g_assert (res != -1);
 
-#ifdef HAVE_POSIX_FALLOCATE
+#if defined(HAVE_POSIX_FALLOCATE) && ! defined __FreeBSD__
   res = posix_fallocate (fd, 0, size);
   if (res != 0)
     {
