12345678910111213141516171819202122232425262728293031323334 |
- $OpenBSD: patch-platform_OpenBSD_sm_mbuf_c,v 1.8 2016/04/05 10:21:22 sthen Exp $
- --- platform/OpenBSD/sm_mbuf.c.orig Mon Nov 2 10:29:12 2009
- +++ platform/OpenBSD/sm_mbuf.c Tue Apr 5 11:18:29 2016
- @@ -29,9 +29,11 @@
- */
-
- #include <sys/param.h>
- +#include <sys/queue.h>
- #include <sys/mbuf.h>
- #include <sys/sysctl.h>
- #include <sys/errno.h>
- +#include <sys/pool.h>
-
- #include <errno.h>
- #include <string.h>
- @@ -64,7 +66,7 @@ get_mbuf(char *symon_buf, int maxlen, struct stream *s
- {
- struct mbstat mbstat;
- int npools;
- - struct pool pool, mbpool, mclpool;
- + struct kinfo_pool pool, mbpool, mclpool;
- int mib[4];
- size_t size;
- int i;
- @@ -111,7 +113,7 @@ get_mbuf(char *symon_buf, int maxlen, struct stream *s
- warning("mbuf(%.200s) failed (sysctl() %.200s)", st->arg, strerror(errno));
- return (0);
- }
- - if (!strcmp(name, "mbpl")) {
- + if (!strcmp(name, "mbpl") || !strcmp(name, "mbufpl")) {
- bcopy(&pool, &mbpool, sizeof(pool));
- flag |= (1 << 0);
- } else if (!strcmp(name, "mclpl")) {
|