[XS] Change in ...nfs-ganesha[next]: Guard the <sys/sysinfo.h> include with HAVE_PROCPS
Bjorn Leffler has uploaded this change for review. ( https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1246767?usp=email ) Change subject: Guard the <sys/sysinfo.h> include with HAVE_PROCPS ...................................................................... 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 https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1246767?usp=email To unsubscribe, or for help writing mail filters, visit https://review.gerrithub.io/settings?usp=email 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>
participants (1)
-
Bjorn Leffler (GerritHub)