From owner-svn-ports-head@FreeBSD.ORG Sun Nov 17 19:04:39 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0A87437F; Sun, 17 Nov 2013 19:04:39 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EE2472DC6; Sun, 17 Nov 2013 19:04:38 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rAHJ4c9N023283; Sun, 17 Nov 2013 19:04:38 GMT (envelope-from kwm@svn.freebsd.org) Received: (from kwm@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rAHJ4cXs023282; Sun, 17 Nov 2013 19:04:38 GMT (envelope-from kwm@svn.freebsd.org) Message-Id: <201311171904.rAHJ4cXs023282@svn.freebsd.org> From: Koop Mast Date: Sun, 17 Nov 2013 19:04:38 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r334115 - head/devel/libgtop/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Nov 2013 19:04:39 -0000 Author: kwm Date: Sun Nov 17 19:04:38 2013 New Revision: 334115 URL: http://svnweb.freebsd.org/changeset/ports/334115 Log: Fix the build on 11.0. Submitted by: marcus@ Added: head/devel/libgtop/files/patch-sysdeps_freebsd_netload.c (contents, props changed) Added: head/devel/libgtop/files/patch-sysdeps_freebsd_netload.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/libgtop/files/patch-sysdeps_freebsd_netload.c Sun Nov 17 19:04:38 2013 (r334115) @@ -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 + + #ifdef HAVE_NET_IF_VAR_H ++#define _WANT_IFADDR 1 + #include + #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;