Vidar Karlsen says freebsd needs a magic constant.
diff --git a/lib/portability.c b/lib/portability.c
index 83382d1..abcecc8 100644
--- a/lib/portability.c
+++ b/lib/portability.c
@@ -65,7 +65,7 @@
   int i, count;
 
   if (path) error_exit("xgetmountlist");
-  if ((count = getmntinfo(&entries, 0)) == 0) perror_exit("getmntinfo");
+  if (!(count = getmntinfo(&entries, MNT_WAIT))) perror_exit("getmntinfo");
 
   // The "test" part of the loop is done before the first time through and
   // again after each "increment", so putting the actual load there avoids