]> git.puffer.fish Git - matthieu/frr.git/commitdiff
Replace _SC_PAGESIZE with the far more portable getpagesize().
authorpaul <paul>
Thu, 23 Jan 2003 18:05:42 +0000 (18:05 +0000)
committerpaul <paul>
Thu, 23 Jan 2003 18:05:42 +0000 (18:05 +0000)
(needed, eg, for Darwin).
 Kris Foster <kris@krweb.net>

vtysh/vtysh.c

index 6e124752375577add175296849b038757c5fe2d7..3492e741c18d26d487f2a2beb10850c9d62290ce 100644 (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;