Recent glibc versions do not expose major() and minor() without an explicit
include of sysmacros.h anymore, therefor add it.
Also remove duplicate types.h include while we're at it.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
#define _FILE_OFFSET_BITS 64
#define _LARGEFILE64_SOURCE 1
#include <sys/types.h>
+#include <sys/sysmacros.h>
#include <unistd.h>
-
-#include <sys/types.h>
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>