From: paul Date: Thu, 23 Jan 2003 18:05:42 +0000 (+0000) Subject: Replace _SC_PAGESIZE with the far more portable getpagesize(). X-Git-Tag: frr-2.0-rc1~4161 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=e3d29b5f9e68447a09dec7215f9ad75d3cc17a0a;p=matthieu%2Ffrr.git Replace _SC_PAGESIZE with the far more portable getpagesize(). (needed, eg, for Darwin). Kris Foster --- diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index 6e12475237..3492e741c1 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -217,7 +217,7 @@ vtysh_client_config (struct vtysh_client *vclient, char *line) /* Allow enough room for buffer to read more than a few pages from socket */ - bufsz = 5 * sysconf(_SC_PAGESIZE) + 1; + bufsz = 5 * getpagesize() + 1; buf = XMALLOC(MTYPE_TMP, bufsz); memset(buf, 0, bufsz); pbuf = buf;