From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVfXs-0005sb-4r for qemu-devel@nongnu.org; Thu, 13 Jul 2017 10:56:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVfXr-00044G-8D for qemu-devel@nongnu.org; Thu, 13 Jul 2017 10:56:48 -0400 Received: from mail-wr0-x22b.google.com ([2a00:1450:400c:c0c::22b]:36186) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dVfXr-00043Q-0R for qemu-devel@nongnu.org; Thu, 13 Jul 2017 10:56:47 -0400 Received: by mail-wr0-x22b.google.com with SMTP id y28so2717427wrd.3 for ; Thu, 13 Jul 2017 07:56:46 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1493271996-23607-8-git-send-email-mdroth@linux.vnet.ibm.com> References: <1493271996-23607-1-git-send-email-mdroth@linux.vnet.ibm.com> <1493271996-23607-8-git-send-email-mdroth@linux.vnet.ibm.com> From: Peter Maydell Date: Thu, 13 Jul 2017 15:56:25 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" Subject: Re: [Qemu-devel] [PULL v2 7/8] qga: Add 'guest-get-users' command List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Roth Cc: QEMU Developers , Vinzenz Feenstra On 27 April 2017 at 06:46, Michael Roth wrote: > From: Vinzenz Feenstra > > A command that will list all currently logged in users, and the time > since when they are logged in. > > Examples: > > virsh # qemu-agent-command F25 '{ "execute": "guest-get-users" }' > {"return":[{"login-time":1490622289.903835,"user":"root"}]} > > virsh # qemu-agent-command Win2k12r2 '{ "execute": "guest-get-users" }' > {"return":[{"login-time":1490351044.670552,"domain":"LADIDA", > "user":"Administrator"}]} > > Signed-off-by: Vinzenz Feenstra > * make g_hash_table_contains compat func inline to avoid > unused warnings > Signed-off-by: Michael Roth > diff --git a/qga/commands-posix.c b/qga/commands-posix.c > index 915df9e..ba06be4 100644 > --- a/qga/commands-posix.c > +++ b/qga/commands-posix.c > @@ -15,6 +15,7 @@ > #include > #include > #include > +#include Hi. I've just noticed that this breaks the build on OpenBSD, which doesn't have utmpx.h or the functions it provides. OpenBSD is currently close to falling off our list of hosts we care about, but still it would be nice if we could do a configure check for utmpx.h and have a fallback 'unsupported' code path for hosts where it doesn't exist. thanks -- PMM