Newer C libraries omit this include from sys/types.h.

--- a/src/bootlogd.c
+++ b/src/bootlogd.c
@@ -32,6 +32,7 @@
  *
  */
 
+#include <sys/sysmacros.h>
 #include <sys/types.h>
 #include <sys/time.h>
 #include <sys/stat.h>
diff -Nru a/src/mountpoint.c b/src/mountpoint.c
--- a/src/mountpoint.c	2005-09-10 11:32:27.000000000 +0200
+++ b/src/mountpoint.c	2018-10-01 20:40:37.166029012 +0200
@@ -14,6 +14,7 @@
  *		2 of the License, or (at your option) any later version.
  */
 
+#include <sys/sysmacros.h>
 #include <sys/stat.h>
 #include <unistd.h>
 #include <stdlib.h>
