diff options
author | Patrick Li <pat@FreeBSD.org> | 2001-12-03 06:32:27 +0000 |
---|---|---|
committer | Patrick Li <pat@FreeBSD.org> | 2001-12-03 06:32:27 +0000 |
commit | 64a85d3e381b8d96f34eceff99b723ceb0c037ab (patch) | |
tree | c10644591fc0ce487e838a869644c367c4382763 /net/wmnd/files/patch-src::wmnd.h | |
parent | Add naturalmath-0.5, a script to turn intuitively written math into latex (diff) |
Add port net/wmnd a network monitor dockapp.
PR: 31690
Submitted by: Paolo Flag <flag@gufi.org>
Reviewed by: petef
Diffstat (limited to 'net/wmnd/files/patch-src::wmnd.h')
-rw-r--r-- | net/wmnd/files/patch-src::wmnd.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/net/wmnd/files/patch-src::wmnd.h b/net/wmnd/files/patch-src::wmnd.h new file mode 100644 index 000000000000..2942e843488b --- /dev/null +++ b/net/wmnd/files/patch-src::wmnd.h @@ -0,0 +1,40 @@ +--- src/wmnd.h.orig Tue May 22 05:06:36 2001 ++++ src/wmnd.h Thu Nov 29 16:08:01 2001 +@@ -24,6 +24,37 @@ + #include <X11/xpm.h> + #include <X11/extensions/shape.h> + ++#ifdef USE_FREEBSD_SYSCTL ++ ++#include <sys/types.h> ++#include <sys/socket.h> ++#include <sys/sysctl.h> ++#include <sys/time.h> ++#include <net/if.h> ++#include <net/if_mib.h> ++ ++/* internal structure used for freebsd-systcl */ ++ ++int freebsd_interface_count=0; ++ ++int get_ifmib_general(int row, struct ifmibdata *ifmd) { ++ ++ int name[6], len; ++ ++ len=sizeof(struct ifmibdata); ++ ++ name[0] = CTL_NET; ++ name[1] = PF_LINK; ++ name[2] = NETLINK_GENERIC; ++ name[3] = IFMIB_IFDATA; ++ name[4] = row; ++ name[5] = IFDATA_GENERAL; ++ ++ return sysctl(name, 6, ifmd, &len, NULL, 0); ++} ++ ++#endif ++ + /* + * Wmnd version number, do not modify line layout or sed will not find + * the main version number |