From 723a9e93adb9ba0501f2db449a56c7e0eace5c23 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 15 Nov 2019 01:20:33 +0100 Subject: Add missing "sys/sysmacros.h" header for back in for Linux On BSD based systems, major(3), minor(3) and makedev(3) are defined in "sys/types.h", but on GNU/Linux systems they are in "sys/sysmacros.h", which is not available on the BSD systems. This patch fixes up compat.h to include "sys/sysmacros.h" on Linux based systems. Signed-off-by: David Oberhollenzer --- include/util/compat.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/util/compat.h b/include/util/compat.h index cb9e81c..76ede23 100644 --- a/include/util/compat.h +++ b/include/util/compat.h @@ -105,6 +105,10 @@ struct stat { #else #include #include + +#ifdef __linux__ +#include +#endif #endif #ifndef HAVE_GETLINE -- cgit v1.2.3