diff options
author | Vladislav Grishenko <themiron@mail.ru> | 2021-02-06 15:24:29 +0500 |
---|---|---|
committer | Vladislav Grishenko <themiron@mail.ru> | 2021-02-06 15:24:29 +0500 |
commit | b1ad6a35a605e9491b8492b5af525994d189d09e (patch) | |
tree | c6e0c4c66ec05232404627b3a008b620863adf1a /accel-pppd/extra | |
parent | 87f24b5e4585bb6308ce1779b966fbb52e59ebae (diff) | |
download | accel-ppp-b1ad6a35a605e9491b8492b5af525994d189d09e.tar.gz accel-ppp-b1ad6a35a605e9491b8492b5af525994d189d09e.zip |
fix build with non-portable _SC_PAGE_SIZE
Diffstat (limited to 'accel-pppd/extra')
-rw-r--r-- | accel-pppd/extra/net-snmp/statCore.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/extra/net-snmp/statCore.c b/accel-pppd/extra/net-snmp/statCore.c index 55109f6..c2e6468 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 <unistd.h> #include <time.h> #include <net-snmp/net-snmp-config.h> @@ -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"); |