diff options
author | beech <beech@FreeBSD.org> | 2008-02-22 03:05:33 +0800 |
---|---|---|
committer | beech <beech@FreeBSD.org> | 2008-02-22 03:05:33 +0800 |
commit | 086dc6a477186333874dff847479c12c44cad277 (patch) | |
tree | c14f6c191b6e2ae5c0da2f2edc4cf0057ce7b0a3 /net/ifstat | |
parent | 249cf94dafcc1c671d3941b6504328a92760f0da (diff) | |
download | freebsd-ports-gnome-086dc6a477186333874dff847479c12c44cad277.tar.gz freebsd-ports-gnome-086dc6a477186333874dff847479c12c44cad277.tar.zst freebsd-ports-gnome-086dc6a477186333874dff847479c12c44cad277.zip |
- Fix build with amd64
PR: ports/120625
Submitted by: Mike Tancsa <mike@sentex.net>
Diffstat (limited to 'net/ifstat')
-rw-r--r-- | net/ifstat/files/patch-drivers.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net/ifstat/files/patch-drivers.c b/net/ifstat/files/patch-drivers.c new file mode 100644 index 000000000000..5d37d642afa7 --- /dev/null +++ b/net/ifstat/files/patch-drivers.c @@ -0,0 +1,22 @@ +--- drivers.c.orig 2003-11-21 19:27:51.000000000 -0600 ++++ drivers.c 2008-02-13 12:25:14.000000000 -0600 +@@ -593,7 +593,8 @@ + int ifcount[] = { + CTL_NET, PF_LINK, NETLINK_GENERIC, IFMIB_SYSTEM, IFMIB_IFCOUNT + }; +- int count, size; ++ int count; ++ size_t size; + + size = sizeof(count); + if (sysctl(ifcount, sizeof(ifcount) / sizeof(int), &count, &size, NULL, 0) < 0) { +@@ -607,7 +608,7 @@ + int ifinfo[] = { + CTL_NET, PF_LINK, NETLINK_GENERIC, IFMIB_IFDATA, index, IFDATA_GENERAL + }; +- int size = sizeof(*ifmd); ++ size_t size = sizeof(*ifmd); + + if (sysctl(ifinfo, sizeof(ifinfo) / sizeof(int), ifmd, &size, NULL, 0) < 0) + return 0; + |