Fix compiler error

This commit is contained in:
Sebastian Messmer 2016-02-17 00:24:40 +01:00
parent 75dda103c9
commit 35f4723b65
4 changed files with 6 additions and 1 deletions

View File

@ -1,7 +1,6 @@
#include "FakeBlock.h"
#include "FakeBlockStore.h"
#include <cpp-utils/assert/assert.h>
#include <sys/sysctl.h>
#include <cpp-utils/system/get_total_memory.h>
using std::make_shared;

View File

@ -31,6 +31,7 @@ set(SOURCES
data/Data.cpp
assert/backtrace.cpp
assert/AssertFailed.cpp
system/get_total_memory.cpp
)
add_library(${PROJECT_NAME} STATIC ${SOURCES})

View File

@ -1,4 +1,7 @@
#include "get_total_memory.h"
#include <sys/sysctl.h>
#include <sys/types.h>
#include <unistd.h>
namespace cpputils{
namespace system {

View File

@ -2,6 +2,8 @@
#ifndef MESSMER_CPPUTILS_SYSTEM_GETTOTALMEMORY_H
#define MESSMER_CPPUTILS_SYSTEM_GETTOTALMEMORY_H
#include <cstdint>
namespace cpputils {
namespace system {
uint64_t get_total_memory();