unwind: permit building against libstdc++
authorSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 11 May 2015 16:35:13 +0000 (16:35 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 11 May 2015 16:35:13 +0000 (16:35 +0000)
Include algorithm early as otherwise you get a number of particularly unhelpful
messages about failed static assertions.  This fixes compilation on Linux with
gcc.

llvm-svn: 237002

libunwind/src/libunwind.cpp

index 031ecce..8f5078b 100644 (file)
@@ -19,6 +19,7 @@
 #include <tuple>
 #include <memory>
 #include <vector>
+#include <algorithm>
 
 #include "libunwind_ext.h"
 #include "config.h"