From d7865bf1d49df359c5794868f2be8f5144d7707d Mon Sep 17 00:00:00 2001 From: Kevin Malachowski Date: Fri, 15 Dec 2017 10:49:54 -0800 Subject: [PATCH] i#2157 re-attach: fix the mac build broken by PR 2762 (#2771) Issue: #2157 --- core/unix/ksynch_macos.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/unix/ksynch_macos.c b/core/unix/ksynch_macos.c index a00e167b5ce..1a81cbf078d 100644 --- a/core/unix/ksynch_macos.c +++ b/core/unix/ksynch_macos.c @@ -41,6 +41,12 @@ */ #include "../globals.h" +#include +/* avoid problems with use of errno as var name in rest of file */ +#if !defined(STANDALONE_UNIT_TEST) && !defined(MACOS) +# undef errno +#endif + #include "ksynch.h" #include