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: 697492 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tN7wn06c9z9svs for ; Tue, 22 Nov 2016 13:00:56 +1100 (AEDT) Received: from localhost ([::1]:52823 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c90OC-0003XE-3n for incoming@patchwork.ozlabs.org; Mon, 21 Nov 2016 21:00:52 -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+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" 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