Suggested fix to compile on FreeBSD.

This commit is contained in:
Alan Mishchenko 2018-02-04 21:09:33 -08:00
parent 30a06d002a
commit 00fb1d706b
1 changed files with 3 additions and 1 deletions

View File

@ -80,11 +80,13 @@ ABC_NAMESPACE_IMPL_END
ABC_NAMESPACE_IMPL_START
using namespace Gluco;
double Gluco::memUsed(void) {
struct rusage ru;
getrusage(RUSAGE_SELF, &ru);
return (double)ru.ru_maxrss / 1024; }
double MiniSat::memUsedPeak(void) { return memUsed(); }
double memUsedPeak(void) { return memUsed(); }
ABC_NAMESPACE_IMPL_END