X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Ferror.h;h=e0cb1583e4cbf4270605238cfdd35ae0284e271b;hp=00519d840c65f20475b61c8b4ab43506728ad754;hb=1e9e234a9f9c031212a795eff518ff7516de7586;hpb=246777db6078ff9dd8046d5701fc12cb34547402 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