diff options
author | kwm <kwm@FreeBSD.org> | 2013-11-18 03:04:38 +0800 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2013-11-18 03:04:38 +0800 |
commit | a79e19f5d382b5a7506e34e55d20b1959cb21599 (patch) | |
tree | 94536df5bfa5a8a8e1297fe419f7169cf0479337 /devel | |
parent | 2e67143b9c744cdc52219a1dd389141af8d56a63 (diff) | |
download | freebsd-ports-gnome-a79e19f5d382b5a7506e34e55d20b1959cb21599.tar.gz freebsd-ports-gnome-a79e19f5d382b5a7506e34e55d20b1959cb21599.tar.zst freebsd-ports-gnome-a79e19f5d382b5a7506e34e55d20b1959cb21599.zip |
Fix the build on 11.0.
Submitted by: marcus@
Diffstat (limited to 'devel')
-rw-r--r-- | devel/libgtop/files/patch-sysdeps_freebsd_netload.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/devel/libgtop/files/patch-sysdeps_freebsd_netload.c b/devel/libgtop/files/patch-sysdeps_freebsd_netload.c new file mode 100644 index 000000000000..51cc5d237969 --- /dev/null +++ b/devel/libgtop/files/patch-sysdeps_freebsd_netload.c @@ -0,0 +1,32 @@ +--- sysdeps/freebsd/netload.c.orig 2013-11-13 14:46:58.000000000 -0500 ++++ sysdeps/freebsd/netload.c 2013-11-13 15:01:52.000000000 -0500 +@@ -37,6 +37,7 @@ + #include <net/if_types.h> + + #ifdef HAVE_NET_IF_VAR_H ++#define _WANT_IFADDR 1 + #include <net/if_var.h> + #endif + +@@ -116,7 +117,7 @@ glibtop_get_netload_p (glibtop *server, + while (ifnetaddr) + { + struct sockaddr_in *sin; +- register char *cp; ++ register uint8_t *cp; + u_long ifaddraddr; + + { +@@ -201,10 +202,10 @@ glibtop_get_netload_p (glibtop *server, + continue; + } + +-#define CP(x) ((char *)(x)) ++#define CP(x) ((uint8_t *)(x)) + cp = (CP(ifaddr.ifa.ifa_addr) - CP(ifaddraddr)) + + CP(&ifaddr); +- sa = (struct sockaddr *)cp; ++ sa = (struct sockaddr *) cp; + + if (sa->sa_family == AF_LINK) { + struct sockaddr_dl *dl = (struct sockaddr_dl *) sa; |