Replace _SC_PAGESIZE with the far more portable getpagesize().

(needed, eg, for Darwin).
 Kris Foster <kris@krweb.net>
This commit is contained in:
paul 2003-01-23 18:05:42 +00:00
parent 4fc4e7ab47
commit e3d29b5f9e

View File

@ -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;