From nobody Mon Apr 29 12:45:28 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zoho.com; dkim=fail spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1494335623197336.3888739598443; Tue, 9 May 2017 06:13:43 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CB0C683F3E; Tue, 9 May 2017 13:13:38 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2142083DDB; Tue, 9 May 2017 13:13:38 +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 3F70B1800C8B; Tue, 9 May 2017 13:13:34 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v49DDWNx015929 for ; Tue, 9 May 2017 09:13:32 -0400 Received: by smtp.corp.redhat.com (Postfix) id 4DF4A7E915; Tue, 9 May 2017 13:13:32 +0000 (UTC) Received: from mx1.redhat.com (ext-mx10.extmail.prod.ext.phx2.redhat.com [10.5.110.39]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 459ACA2517 for ; Tue, 9 May 2017 13:13:29 +0000 (UTC) Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1EA559FDCA for ; Tue, 9 May 2017 13:13:28 +0000 (UTC) Received: by mail-wr0-f193.google.com with SMTP id w50so13657215wrc.0 for ; Tue, 09 May 2017 06:13:28 -0700 (PDT) Received: from localhost.localdomain ([95.104.128.3]) by smtp.gmail.com with ESMTPSA id 25sm3289072lfu.52.2017.05.09.06.13.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 May 2017 06:13:26 -0700 (PDT) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com CB0C683F3E Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=libvir-list-bounces@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com CB0C683F3E Authentication-Results: mx1.redhat.com; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ipsqu4cd" DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 1EA559FDCA Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=bogorodskiy@gmail.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 1EA559FDCA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=ceCxOJpkF4+u7jw1QEJhe/GePCh6Bp0ZIV8/XS+4b0M=; b=ipsqu4cdKl72ZNwZiFMx3TBDr0UAJg76CwOTQd/kciQ4paHerKQY5komE+G29X6f9f 9T4LI2tm5x7k6k6Q31hfYo/9w+f0erNV8TSy5xcv5mJo2vpECSAqIj2ZfNFlKUJHnjsY 0f/xdZJ2mwrVke5PUzA5khZbXxT1kvWwbhdD1nRazV8WxBMcjL0Ay+E4fcQ6ARcZwUqD 1r2HvNRxOULyu0AewIb4WMn9WHovhralmFQuCfMYsKF7CywGP4M2UHPOSZ4ixvSq02oQ n7psux2l6Yvbl4H3CJWu05n7ya8CvOfgzVqCgfEleXDQSEeaTCTeJLaw+6l6Li9I8WDf h1xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ceCxOJpkF4+u7jw1QEJhe/GePCh6Bp0ZIV8/XS+4b0M=; b=UjfCQWjU6CVq0N5yQJsVgZrzFgq2NJzffvGd1IHqysNHhalkidbWePsILMnPEeq4Sn 5QEu1/Z+9HhdbNNUpOSbyc2J5MGePOKcsvLzfD2ZSnSVTHAnMjtf6E2D5xw4RN87r+zk A9XBorVwnur5SxFvHMlZtKb6WCNiMgdWZbJSJhyQdXrrfKhjhjH8pHJxh7EbPWcNszkc bV4dFVzUSQ8P9zlNLpPYiIZDC1b2Xn8D4V+qrxSdpHlngZcFC84Dz6BK+GBJ0tsmwu1w iJt2bJDneutArcd2uZA+/tkQ0QKXimYkOwog+G2j3rZs47Bh0JqkJptK2zaeLSk+4/Lm Ul2A== X-Gm-Message-State: AODbwcD5pCCpaZrBvEU2p/+o04fHH0BnA47FUGsI28hN8wxSiTfeDc9x 9FfOPwFCGSAhjg== X-Received: by 10.25.217.88 with SMTP id q85mr5925711lfg.178.1494335606799; Tue, 09 May 2017 06:13:26 -0700 (PDT) From: Roman Bogorodskiy To: libvir-list@redhat.com Date: Tue, 9 May 2017 17:13:19 +0400 Message-Id: <20170509131319.18950-1-bogorodskiy@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Tue, 09 May 2017 13:13:28 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Tue, 09 May 2017 13:13:28 +0000 (UTC) for IP:'209.85.128.193' DOMAIN:'mail-wr0-f193.google.com' HELO:'mail-wr0-f193.google.com' FROM:'bogorodskiy@gmail.com' RCPT:'' X-RedHat-Spam-Score: -1.61 (BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, RCVD_IN_SORBS_SPAM, SPF_PASS) 209.85.128.193 mail-wr0-f193.google.com 209.85.128.193 mail-wr0-f193.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.39 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Cc: Roman Bogorodskiy Subject: [libvirt] [PATCH] tests: fix virfilewrapper 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: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Tue, 09 May 2017 13:13:40 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" If __lxstat() and __xstat() functions are not available, build fails with: CC virfilewrapper.o virfilewrapper.c:180:5: error: no previous prototype for function '__lxstat= ' [-Werror,-Wmissing-prototypes] int __lxstat(int ver, const char *path, struct stat *sb) ^ virfilewrapper.c:208:5: error: no previous prototype for function '__xstat'= [-Werror,-Wmissing-prototypes] int __xstat(int ver, const char *path, struct stat *sb) Luckily, we already check presence of these functions in configure using AC_CHECK_FUNCS, so just don't wrap these if they're not available. Signed-off-by: Roman Bogorodskiy --- Pushed under build-breaker fix. tests/virfilewrapper.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/virfilewrapper.c b/tests/virfilewrapper.c index 75c32bfca..5ea70b34d 100644 --- a/tests/virfilewrapper.c +++ b/tests/virfilewrapper.c @@ -177,6 +177,7 @@ int access(const char *path, int mode) return ret; } =20 +#ifdef HAVE___LXSTAT int __lxstat(int ver, const char *path, struct stat *sb) { int ret =3D -1; @@ -190,6 +191,7 @@ int __lxstat(int ver, const char *path, struct stat *sb) =20 return ret; } +#endif /* HAVE___LXSTAT */ =20 int lstat(const char *path, struct stat *sb) { @@ -205,6 +207,7 @@ int lstat(const char *path, struct stat *sb) return ret; } =20 +#ifdef HAVE___XSTAT int __xstat(int ver, const char *path, struct stat *sb) { int ret =3D -1; @@ -218,6 +221,7 @@ int __xstat(int ver, const char *path, struct stat *sb) =20 return ret; } +#endif /* HAVE___XSTAT */ =20 int stat(const char *path, struct stat *sb) { --=20 2.12.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list