[ofa-general] [PATCH] ibutils/ibmgtsim: add missing header file for std::find()
Sasha Khapyorsky
sashak at voltaire.com
Fri Oct 10 10:03:03 PDT 2008
Function prototypes are mandatory with C++. The compilation fails with
gcc-4.3.1. This adds needed header inclusion (algorithm) for std::find()
function.
Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
Same story as with previous patch, but now in ibmgtsim (not included in
default ibutils build).
ibmgtsim/src/node.cpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/ibmgtsim/src/node.cpp b/ibmgtsim/src/node.cpp
index 04f087c..8bc35ae 100644
--- a/ibmgtsim/src/node.cpp
+++ b/ibmgtsim/src/node.cpp
@@ -50,6 +50,7 @@
#include "node.h"
#include "sim.h"
#include "randmgr.h"
+#include <algorithm>
//////////////////////////////////////////////////////////////
//
--
1.6.0.1.196.g01914
More information about the general
mailing list