diff options
author | paul <paul> | 2003-01-23 18:05:42 +0000 |
---|---|---|
committer | paul <paul> | 2003-01-23 18:05:42 +0000 |
commit | 143253526949b901e198d0cc8f272a3c07823674 (patch) | |
tree | 95f75a96f94cd9034b698b885bdcd4fd05e3f8f0 | |
parent | 2ea23faa62122bc9edb98e5346f9818aad0ef946 (diff) | |
download | quagga-143253526949b901e198d0cc8f272a3c07823674.tar.bz2 quagga-143253526949b901e198d0cc8f272a3c07823674.tar.xz |
Replace _SC_PAGESIZE with the far more portable getpagesize().patch.vtysh.pagesize
(needed, eg, for Darwin).
Kris Foster <kris@krweb.net>
-rw-r--r-- | vtysh/vtysh.c | 2 |
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; |