Need this for major/minor.
--- a/src/main.c
+++ b/src/main.c
@@ -30,6 +30,8 @@
#include <locale.h>
+#include <sys/sysmacros.h>
+
#include "main-window.h"
#include "vfs-file-info.h"