Merge pull request #821 from ceph/port/missing-headers

add missing headers

Reviewed-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2013-11-06 07:51:02 -08:00
commit 0c91576ef6
4 changed files with 6 additions and 1 deletions

View File

@ -12,6 +12,8 @@
*
*/
#include <algorithm>
#include "common/Mutex.h"
#include "common/config.h"
#include "common/debug.h"

View File

@ -16,6 +16,7 @@
#include <map>
#include <memory>
#include <sstream>
#include <algorithm>
#include "auth/AuthMethodList.h"
#include "auth/Crypto.h"

View File

@ -1,6 +1,7 @@
#include "CrushTester.h"
#include <algorithm>
#include <stdlib.h>
@ -203,7 +204,7 @@ bool CrushTester::check_valid_placement(int ruleno, vector<int> in, const vector
// check that we don't have any duplicate id's
for (vector<int>::iterator it = included_devices.begin(); it != included_devices.end(); ++it) {
int num_copies = count(included_devices.begin(), included_devices.end(), (*it) );
int num_copies = std::count(included_devices.begin(), included_devices.end(), (*it) );
if (num_copies > 1) {
valid_placement = false;
}

View File

@ -1,6 +1,7 @@
#include "MonMap.h"
#include <algorithm>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>