summaryrefslogtreecommitdiff
path: root/vtysh
diff options
context:
space:
mode:
authorpaul <paul>2003-01-23 18:05:42 +0000
committerpaul <paul>2003-01-23 18:05:42 +0000
commite3d29b5f9e68447a09dec7215f9ad75d3cc17a0a (patch)
treea3e785d2bc78f45c51f5413409bf9eb6a560ed63 /vtysh
parent4fc4e7ab47fef3295d0ae40e064fc99478c24e23 (diff)
Replace _SC_PAGESIZE with the far more portable getpagesize().
(needed, eg, for Darwin). Kris Foster <kris@krweb.net>
Diffstat (limited to 'vtysh')
-rw-r--r--vtysh/vtysh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index 6e124752..3492e741 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;