--- a/src/main.c
+++ b/src/main.c
@@ -21,6 +21,7 @@
 
 /* socket is used to keep single instance */
 #include <sys/types.h>
+#include <sys/sysmacros.h>
 #include <sys/socket.h>
 #include <sys/un.h>
 
