[ofa-general] [PATCH] ibutils: add missing header file with std::sort() prototype

Sasha Khapyorsky sashak at voltaire.com
Fri Oct 10 08:07:06 PDT 2008


Function prototypes are mandatory with C++. The compilation fails with
gcc-4.3.1. This patch adds header file (algorithm) inclusion needed for
std::sort() function.

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 ibdm/datamodel/LinkCover.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ibdm/datamodel/LinkCover.cpp b/ibdm/datamodel/LinkCover.cpp
index 8f10273..0abeac9 100644
--- a/ibdm/datamodel/LinkCover.cpp
+++ b/ibdm/datamodel/LinkCover.cpp
@@ -39,6 +39,7 @@
 #include <fstream>
 #include <sstream>
 #include <map>
+#include <algorithm>
 using namespace std;
 
 /*
-- 
1.6.0.1.196.g01914




More information about the general mailing list