From nobody Sat Feb 7 08:23:22 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) client-ip=205.139.110.61; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) by mx.zohomail.com with SMTPS id 1580217283930955.5701853470181; Tue, 28 Jan 2020 05:14:43 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-2-n0AiVnepNX-w-oAuS-041g-1; Tue, 28 Jan 2020 08:14:40 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6139E100551B; Tue, 28 Jan 2020 13:14:34 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3B2245C28C; Tue, 28 Jan 2020 13:14:34 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id EC42085E55; Tue, 28 Jan 2020 13:14:33 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 00SDESF3019758 for ; Tue, 28 Jan 2020 08:14:28 -0500 Received: by smtp.corp.redhat.com (Postfix) id 7D8821001DF0; Tue, 28 Jan 2020 13:14:28 +0000 (UTC) Received: from domokun.gsslab.fab.redhat.com (unknown [10.33.8.110]) by smtp.corp.redhat.com (Postfix) with ESMTP id CED331001DD8; Tue, 28 Jan 2020 13:14:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1580217282; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=kmSKFn75vuFPmmq5COmvXIJCPLX0scscR1NaTVaUJbo=; b=XHak1iw3WMj8hMr8ZL1Fmgp0HWEgIuwrMSbhxrW0igaUSqyIXKGWvWj/fz/ESU5HTqMn1N 9Y+alFbzHzohU9nyxDYkZQsQpLpB03tfTIKrhwlokkMGOvIsgoPanT8KeiM7LH6LLw29P7 ZWVNkTo5FiPk/DQwWmFwjinDVV5oEQ4= From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH v2 53/56] src: optionally include xlocale.h header Date: Tue, 28 Jan 2020 13:11:34 +0000 Message-Id: <20200128131137.1762449-54-berrange@redhat.com> In-Reply-To: <20200128131137.1762449-1-berrange@redhat.com> References: <20200128131137.1762449-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-MC-Unique: n0AiVnepNX-w-oAuS-041g-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" On macOS some definitions are in xlocale.h, instead of in locale.h. GNULIB hides this difference by making the latter include the former. Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Pavel Hrdina --- configure.ac | 1 + src/util/virgettext.c | 3 +++ src/util/virstring.c | 3 +++ tests/vshtabletest.c | 3 +++ 4 files changed, 10 insertions(+) diff --git a/configure.ac b/configure.ac index 005753e8a1..8692c40e86 100644 --- a/configure.ac +++ b/configure.ac @@ -400,6 +400,7 @@ AC_CHECK_HEADERS([\ sys/syscall.h \ sys/sysctl.h \ sys/ucred.h \ + xlocale.h \ ]) dnl Check whether endian provides handy macros. AC_CHECK_DECLS([htole64], [], [], [[#include ]]) diff --git a/src/util/virgettext.c b/src/util/virgettext.c index 7c12a5c142..8de8edb239 100644 --- a/src/util/virgettext.c +++ b/src/util/virgettext.c @@ -21,6 +21,9 @@ #include =20 #include +#ifdef HAVE_XLOCALE_H +# include +#endif =20 #include "configmake.h" #include "internal.h" diff --git a/src/util/virstring.c b/src/util/virstring.c index fe5c026d2c..e9e792f3bf 100644 --- a/src/util/virstring.c +++ b/src/util/virstring.c @@ -20,6 +20,9 @@ =20 #include #include +#ifdef HAVE_XLOCALE_H +# include +#endif =20 #include "virstring.h" #include "virthread.h" diff --git a/tests/vshtabletest.c b/tests/vshtabletest.c index 0feda90b52..55b795f99c 100644 --- a/tests/vshtabletest.c +++ b/tests/vshtabletest.c @@ -19,6 +19,9 @@ #include =20 #include +#ifdef HAVE_XLOCALE_H +# include +#endif #include #include =20 --=20 2.24.1