summaryrefslogtreecommitdiff
path: root/dev-libs/rccl/files/rccl-7.0.1-fix-libcxx.patch
blob: fe2db12f31a5452b2d389bcfbc916904e3fbf627 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/src/ras/ras.cc
+++ b/src/ras/ras.cc
@@ -5,9 +5,11 @@
  ************************************************************************/
 
 // Workaround for libstdc++ trying to force public visibility of std:: symbols.  We don't want to do that in libnccl.so.
+#ifdef __GLIBCXX__
 #include <bits/c++config.h>
 #undef _GLIBCXX_VISIBILITY
 #define _GLIBCXX_VISIBILITY(V)
+#endif
 #include <cstddef>
 #include <mutex>
 #include <poll.h>