X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/3bfeb9c1a7044cd96c1bd77677dfe8b575c73c5f..95f68f7b0fc4ffc700361484b6c792a8e03f3a13:/src/zmalloc.c diff --git a/src/zmalloc.c b/src/zmalloc.c index 1f8c7f08..a9ba0943 100644 --- a/src/zmalloc.c +++ b/src/zmalloc.c @@ -252,7 +252,7 @@ void zmalloc_set_oom_handler(void (*oom_handler)(size_t)) { * function RedisEstimateRSS() that is a much faster (and less precise) * version of the funciton. */ -#if defined(HAVE_PROCFS) +#if defined(HAVE_PROC_STAT) #include #include #include @@ -325,7 +325,7 @@ float zmalloc_get_fragmentation_ratio(void) { return (float)zmalloc_get_rss()/zmalloc_used_memory(); } -#if defined(HAVE_PROCFS) +#if defined(HAVE_PROC_SMAPS) size_t zmalloc_get_private_dirty(void) { char line[1024]; size_t pd = 0;