From b1ad6a35a605e9491b8492b5af525994d189d09e Mon Sep 17 00:00:00 2001 From: Vladislav Grishenko Date: Sat, 6 Feb 2021 15:24:29 +0500 Subject: fix build with non-portable _SC_PAGE_SIZE --- accel-pppd/extra/net-snmp/statCore.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'accel-pppd/extra') diff --git a/accel-pppd/extra/net-snmp/statCore.c b/accel-pppd/extra/net-snmp/statCore.c index 55109f6a..c2e64689 100644 --- a/accel-pppd/extra/net-snmp/statCore.c +++ b/accel-pppd/extra/net-snmp/statCore.c @@ -3,6 +3,7 @@ * : mib2c.scalar.conf 11805 2005-01-07 09:37:18Z dts12 $ */ +#include #include #include @@ -111,7 +112,7 @@ handle_statCoreMemRss(netsnmp_mib_handler *handler, char statm_fname[128]; FILE *f; unsigned long vmsize = 0, vmrss = 0; - unsigned long page_size = sysconf(_SC_PAGE_SIZE); + unsigned long page_size = sysconf(_SC_PAGESIZE); sprintf(statm_fname, "/proc/%i/statm", getpid()); f = fopen(statm_fname, "r"); -- cgit v1.2.3