summaryrefslogtreecommitdiff
path: root/accel-pppd/cli/std_cmd.c
diff options
context:
space:
mode:
authorVladislav Grishenko <themiron@mail.ru>2021-02-06 15:24:29 +0500
committerVladislav Grishenko <themiron@mail.ru>2021-02-06 15:24:29 +0500
commitb1ad6a35a605e9491b8492b5af525994d189d09e (patch)
treec6e0c4c66ec05232404627b3a008b620863adf1a /accel-pppd/cli/std_cmd.c
parent87f24b5e4585bb6308ce1779b966fbb52e59ebae (diff)
downloadaccel-ppp-b1ad6a35a605e9491b8492b5af525994d189d09e.tar.gz
accel-ppp-b1ad6a35a605e9491b8492b5af525994d189d09e.zip
fix build with non-portable _SC_PAGE_SIZE
Diffstat (limited to 'accel-pppd/cli/std_cmd.c')
-rw-r--r--accel-pppd/cli/std_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/cli/std_cmd.c b/accel-pppd/cli/std_cmd.c
index 500102b0..e752918c 100644
--- a/accel-pppd/cli/std_cmd.c
+++ b/accel-pppd/cli/std_cmd.c
@@ -25,7 +25,7 @@ static int show_stat_exec(const char *cmd, char * const *fields, int fields_cnt,
char statm_fname[128];
FILE *f;
unsigned long vmsize = 0, vmrss = 0;
- unsigned long page_size_kb = sysconf(_SC_PAGE_SIZE) / 1024;
+ unsigned long page_size_kb = sysconf(_SC_PAGESIZE) / 1024;
#ifdef MEMDEBUG
struct mallinfo mi = mallinfo();
#endif