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/cli/std_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'accel-pppd/cli') diff --git a/accel-pppd/cli/std_cmd.c b/accel-pppd/cli/std_cmd.c index 500102b..e752918 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 -- cgit v1.2.3