--- a/libbalsa/misc.c	2020-06-27 12:47:54.228984871 +0530
+++ b/libbalsa/misc.c	2020-06-27 12:47:40.385206539 +0530
@@ -37,6 +37,7 @@
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <sys/utsname.h>
+#include <asm-generic/fcntl.h>
 
 #include "libbalsa.h"
 #include "libbalsa_private.h"
