mirror of
https://git.proxmox.com/git/mirror_frr
synced 2026-01-04 20:16:01 +00:00
Replace _SC_PAGESIZE with the far more portable getpagesize().
(needed, eg, for Darwin). Kris Foster <kris@krweb.net>
This commit is contained in:
parent
4fc4e7ab47
commit
e3d29b5f9e
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user