From patchwork Sat Mar 30 11:56:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 1070768 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-498650-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=adacore.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="Heuste9E"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44WcXx0p4Dz9sRQ for ; Sat, 30 Mar 2019 22:57:14 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=pJg22Fa790PjkMl8 JQvxo1IT+kddnP841EUzDS6nK52CweC1yw3U1hruwXIP0Je5TLfCqIw3qlx6Sqw5 jfqII0qyViGtAvf8e2C0kPoE0dLDP7BTXA+4xcqI5qI9krXqhuhiAxB8oPHB5b4X BU5WCVYhdAEdJg6xMwnMKWB51Cw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=default; bh=QfY7bvm4b4gMJ/KSt59VOX V4Ysw=; b=Heuste9E3VuFWhACcOv1DSotXPJG3v3PTvdpu3Y2RbyYrgIAxqh0Ig jZ4nt8rmEZN48QMlgCwfe1EHup4e6k5Ctqth/lBf71mCejOCg08p+O0ACGLbhd4g iuogHdYixxvK+dxCOGbeQnj1etB9LHjFRRmjjaUheQvkXGriPGuyo= Received: (qmail 70901 invoked by alias); 30 Mar 2019 11:56:55 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 70885 invoked by uid 89); 30 Mar 2019 11:56:54 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-14.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_BLOCKED autolearn=ham version=3.3.1 spammy=H*MI:polaris, chmod X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 30 Mar 2019 11:56:53 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 3855E8138A; Sat, 30 Mar 2019 12:56:51 +0100 (CET) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ebbqXnYTzo6q; Sat, 30 Mar 2019 12:56:51 +0100 (CET) Received: from polaris.localnet (bon31-6-88-161-99-133.fbx.proxad.net [88.161.99.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id 1816081386; Sat, 30 Mar 2019 12:56:51 +0100 (CET) From: Eric Botcazou To: libstdc++@gcc.gnu.org Cc: gcc-patches@gcc.gnu.org Subject: [patch] Fix build failure with MinGW Date: Sat, 30 Mar 2019 12:56:48 +0100 Message-ID: <6050446.nTtzE1YJS2@polaris> MIME-Version: 1.0 Tested on x86_64-pc-mingw32, OK for the mainline? 2019-03-30 Eric Botcazou * src/c++17/fs_ops.cc (fs::permissions): Use std::errc::not_supported. diff --git libstdc++-v3/src/c++17/fs_ops.cc libstdc++-v3/src/c++17/fs_ops.cc index 3ff0ded1c66..5ca523826cb 100644 --- libstdc++-v3/src/c++17/fs_ops.cc +++ libstdc++-v3/src/c++17/fs_ops.cc @@ -1127,7 +1127,7 @@ fs::permissions(const path& p, perms prms, perm_options opts, err = errno; #else if (nofollow && is_symlink(st)) - ec = std::make_error_code(std::errc::operation_not_supported); + ec = std::make_error_code(std::errc::not_supported); else if (posix::chmod(p.c_str(), static_cast(prms))) err = errno; #endif