From ba4811b1d2ac5a9d363e6000c83098f2eb885119 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 27 Sep 2019 22:54:44 +0200 Subject: Add a header for platform compatibillity fluff - We don't have "endian.h" everywhere. On some BSDs its in sys and on some BSDs the macros have different names. - We definitely don't have sysmacros.h on non-Unix-like systems. - Likewise for sys/types.h, sys/stat.h and their contents. Signed-off-by: David Oberhollenzer --- include/util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/util.h') diff --git a/include/util.h b/include/util.h index 61754ed..e7bc431 100644 --- a/include/util.h +++ b/include/util.h @@ -10,10 +10,11 @@ #include "config.h" #include "sqfs/predef.h" -#include #include #include +#include "compat.h" + #if defined(__GNUC__) || defined(__clang__) #define UI_ADD_OV __builtin_uadd_overflow #define UL_ADD_OV __builtin_uaddl_overflow -- cgit v1.2.3