Bjorn Leffler has uploaded this change for review.

View Change

Guard the <sys/sysinfo.h> include with HAVE_PROCPS

struct sysinfo and sysinfo() are used only by dynamic_metrics__mem_info(),
which is itself inside #ifdef HAVE_PROCPS, but the include is unconditional.
It is dead weight whenever procps is absent, and a hard failure on platforms
that have no <sys/sysinfo.h>.

Change-Id: I0f6c1ef98433628f383b4628880014626f342206
Signed-off-by: Bjorn Leffler <github@leffler.org>
---
M src/monitoring/dynamic_metrics.cc
1 file changed, 2 insertions(+), 0 deletions(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/67/1246767/1

To view, visit change 1246767. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I0f6c1ef98433628f383b4628880014626f342206
Gerrit-Change-Number: 1246767
Gerrit-PatchSet: 1
Gerrit-Owner: Bjorn Leffler <github@leffler.org>