Index: devel/libgtop/Makefile =================================================================== --- devel/libgtop/Makefile +++ devel/libgtop/Makefile @@ -22,8 +22,13 @@ INSTALL_TARGET= install-strip CONFIGURE_ARGS= --enable-introspection +.include +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200031 +EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-ino64 +.endif + INFO= libgtop2 PKGMESSAGE= ${FILESDIR}/pkg-message -.include +.include Index: devel/libgtop/files/extra-patch-ino64 =================================================================== --- devel/libgtop/files/extra-patch-ino64 +++ devel/libgtop/files/extra-patch-ino64 @@ -0,0 +1,41 @@ +--- sysdeps/freebsd/procopenfiles.c.orig 2014-10-12 07:17:26.000000000 +0000 ++++ sysdeps/freebsd/procopenfiles.c 2017-04-22 17:17:54.862169000 +0000 +@@ -322,12 +322,12 @@ + struct sockaddr_un *sun; + + entry.type = GLIBTOP_FILE_TYPE_LOCALSOCKET; +- sun = (struct sockaddr_un *)&kif->kf_sa_local; ++ sun = (struct sockaddr_un *)&kif->kf_un.kf_sock.kf_sa_local; + + if (sun->sun_path[0]) { + char *addrstr; + +- addrstr = addr_to_string(&kif->kf_sa_local); ++ addrstr = addr_to_string(&kif->kf_un.kf_sock.kf_sa_local); + g_strlcpy(entry.info.localsock.name, + addrstr, + sizeof(entry.info.localsock.name)); +@@ -335,7 +335,7 @@ + } else { + char *addrstr; + +- addrstr = addr_to_string(&kif->kf_sa_peer); ++ addrstr = addr_to_string(&kif->kf_un.kf_sock.kf_sa_peer); + g_strlcpy(entry.info.localsock.name, + addrstr, + sizeof(entry.info.localsock.name)); +@@ -349,12 +349,12 @@ + entry.type = GLIBTOP_FILE_TYPE_INETSOCKET; + else + entry.type = GLIBTOP_FILE_TYPE_INET6SOCKET; +- addrstr = addr_to_string(&kif->kf_sa_peer); ++ addrstr = addr_to_string(&kif->kf_un.kf_sock.kf_sa_peer); + g_strlcpy(entry.info.sock.dest_host, + addrstr, + sizeof(entry.info.sock.dest_host)); + g_free(addrstr); +- entry.info.sock.dest_port = addr_to_port(&kif->kf_sa_peer); ++ entry.info.sock.dest_port = addr_to_port(&kif->kf_un.kf_sock.kf_sa_peer); + } + } else if (kif->kf_type == KF_TYPE_PIPE) { + entry.type = GLIBTOP_FILE_TYPE_PIPE;