From 91f563da9846fb4a130acd764a35c70e767eec14 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Sat, 23 Feb 2013 10:15:40 +0100 Subject: [PATCH] error.h is not portable MacOS doesn't include error.h. Check if __APPLE__ is defined. --- util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util.c b/util.c index c60ef0f..ae26693 100644 --- a/util.c +++ b/util.c @@ -41,7 +41,9 @@ #include "config.h" #include #include -#include +#if !defined(__APPLE__) + #include +#endif /* __APPLE__ */ #include "safe-read.h" int buggy_lseek_support(int fdesc)