--- libbsd-0.9.1/src/flopen.c.old	2018-05-21 02:33:33.000000000 +0000
+++ libbsd-0.9.1/src/flopen.c	2018-09-09 17:43:59.850000000 +0000
@@ -32,6 +32,7 @@
 #include <sys/stat.h>
 
 #include <errno.h>
+#include <fcntl.h>
 #include <stdarg.h>
 #include <unistd.h>