From patchwork Tue Nov 22 01:32:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ed Maste X-Patchwork-Id: 9440431 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D2F80600BA for ; Tue, 22 Nov 2016 02:00:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C7AD6287B6 for ; Tue, 22 Nov 2016 02:00:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B8B8928B7A; Tue, 22 Nov 2016 02:00:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 13EF0287B6 for ; Tue, 22 Nov 2016 02:00:27 +0000 (UTC) Received: from localhost ([::1]:52818 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c90Nk-00035I-Eb for patchwork-qemu-devel@patchwork.kernel.org; Mon, 21 Nov 2016 21:00:24 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c90NQ-000352-6n for qemu-devel@nongnu.org; Mon, 21 Nov 2016 21:00:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c90NO-0006x2-NJ for qemu-devel@nongnu.org; Mon, 21 Nov 2016 21:00:04 -0500 Received: from [198.36.117.245] (port=43406 helo=freebsd.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c90NO-0006rL-Ey for qemu-devel@nongnu.org; Mon, 21 Nov 2016 21:00:02 -0500 Received: from emaste (uid 1001) (envelope-from emaste@freebsd.org) id 9d60b by freebsd.org (DragonFly Mail Agent v0.10); Mon, 21 Nov 2016 20:32:47 -0500 From: Ed Maste To: qemu-devel@nongnu.org Date: Mon, 21 Nov 2016 20:32:45 -0500 Message-Id: <1479778365-11315-1-git-send-email-emaste@freebsd.org> X-Mailer: git-send-email 2.8.1 X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 198.36.117.245 Subject: [Qemu-devel] [PATCH] Fix FreeBSD (10.x) build after 7dc9ae43 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, Ed Maste Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Include sys/user.h for declaration of 'struct kinfo_proc'. Add -lutil to qemu-ga link for kinfo_getproc. Signed-off-by: Ed Maste --- configure | 2 ++ util/oslib-posix.c | 1 + 2 files changed, 3 insertions(+) diff --git a/configure b/configure index 7d2a34e..5e66828 100755 --- a/configure +++ b/configure @@ -582,6 +582,8 @@ FreeBSD) audio_possible_drivers="oss sdl pa" # needed for kinfo_getvmmap(3) in libutil.h LIBS="-lutil $LIBS" + # needed for kinfo_getproc + libs_qga="-lutil $libs_qga" netmap="" # enable netmap autodetect HOST_VARIANT_DIR="freebsd" ;; diff --git a/util/oslib-posix.c b/util/oslib-posix.c index 67c6589..f631464 100644 --- a/util/oslib-posix.c +++ b/util/oslib-posix.c @@ -45,6 +45,7 @@ #ifdef __FreeBSD__ #include +#include #include #endif