Fix compiler error
This commit is contained in:
parent
75dda103c9
commit
35f4723b65
@ -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;
|
||||
|
@ -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})
|
||||
|
@ -1,4 +1,7 @@
|
||||
#include "get_total_memory.h"
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
namespace cpputils{
|
||||
namespace system {
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user