--- a/lib/file_lock.c
+++ b/lib/file_lock.c
@@ -39,6 +39,7 @@
 #include <errno.h>
 #include <sys/sysmacros.h>
 #include <string.h> /* memset, strerror */
+#include "file_lock.h"
 
 extern int errno;