freebsd-ports/deskutils/kdepim44/files/patch-kleopatra__uiserver__assuanserverconnection.cpp
Raphael Kubo da Costa 25c41d2164 - Add a series of patches to fix the build with libc++, some of them
imported from deskutils/kdepim4.
- Properly set XDG_CONFIG_HOME to /dev/null when building so that no
  additional files are touched at build time.
2013-11-05 22:10:00 +00:00

20 lines
545 B
C++

--- kleopatra/uiserver/assuanserverconnection.cpp
+++ kleopatra/uiserver/assuanserverconnection.cpp
@@ -96,7 +96,7 @@
#include <errno.h>
-#ifdef __GNUC__
+#ifdef __GLIBCXX__
# include <ext/algorithm> // for is_sorted
#endif
@@ -827,7 +827,7 @@ AssuanServerConnection::Private::Private( assuan_fd_t fd_, const std::vector< sh
sessionId( 0 ),
factories( factories_ )
{
-#ifdef __GNUC__
+#ifdef __GLIBCXX__
assert( __gnu_cxx::is_sorted( factories_.begin(), factories_.end(), _detail::ByName<std::less>() ) );
#endif