--- configure.orig	2019-01-20 01:00:30 UTC
+++ configure
@@ -633,6 +633,9 @@ ac_includes_default="\
 #endif
 #ifdef HAVE_UNISTD_H
 # include <unistd.h>
+#endif
+#ifdef __FreeBSD__
+# include <sys/param.h>
 #endif"
 
 ac_header_list=
