From 1e9e234a9f9c031212a795eff518ff7516de7586 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Fri, 16 Oct 2015 10:23:46 -0400 Subject: [PATCH] Port: fix 'ERR' conflict with Solaris regset.h MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- src/common/error.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/error.h b/src/common/error.h index 00519d840..e0cb1583e 100644 --- a/src/common/error.h +++ b/src/common/error.h @@ -32,6 +32,11 @@ #include #include +/* Avoid conflict with Solaris */ +#if defined(ERR) && defined(__sun__) +#undef ERR +#endif + /* Stringify the expansion of a define */ #define XSTR(d) STR(d) #define STR(s) #s -- 2.34.1