--- a/src/file.h
+++ b/src/file.h
@@ -31,6 +31,7 @@
 #define CSSC__FILE_H__
 
 #include "filelock.h"
+#include <unistd.h> /* gid_t */
 
 enum create_mode {
 	CREATE_EXCLUSIVE     =  001,
