From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by sourceware.org (Postfix) with ESMTPS id 014F9385841A for ; Tue, 5 Oct 2021 08:26:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 014F9385841A Received: by mail-lf1-x131.google.com with SMTP id b20so83435916lfv.3 for ; Tue, 05 Oct 2021 01:26:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=nY7eIzOo7fmnea7x4alw2Kl1elmt2WKJwCigIzYPY2w=; b=Erufcr09Z/BbrEDkjL3A29rFdEPJRcKCn5eAweu7lmKpzinN/Kl8VPegdWTmc/lcoZ r2t7iZAL8pkAvMPQmYy3L5SkEA2NXVR7WhA3YjhrXtgJIHWoME1cD4wl5em4/VHdlDRf sFNoDBgkDyTECFnHfEmYEC9DcZM4NAotFTPDdtu2OqazYch1TTCC3770jc92JbltGUNc axE0Q/o5bjZBjUHmruiBZdxCpVO6kfwiNQYjc0fxfbYI+FI1qiluoCEQ/o9W7jjJtvK+ PDV7ewaQ0xTXNt9V36FkcJ7jgC+V+HiIjwZnZtTeNbn5Lm8qV+4DlS5Be9a/r3mMb4VM 5MjA== X-Gm-Message-State: AOAM531erxrjnL4L0Izlvf7E/BKuJVkut0ZgYVg9flqoJvfP1R4nyHML lExZDv0MPe7xqexUF/7khcKMoUuxyYlTJQ== X-Google-Smtp-Source: ABdhPJx8VWOc45HvbxNupujdYI5EwG+DMWvM4BUs098l3m5HK+cBVr5Ar30yeirfyCgRa/QDqFI8fA== X-Received: by 2002:a2e:864c:: with SMTP id i12mr21041192ljj.193.1633422416899; Tue, 05 Oct 2021 01:26:56 -0700 (PDT) Received: from adacore.com ([2a02:2ab8:224:2ce:72b5:e8ff:feef:ee60]) by smtp.gmail.com with ESMTPSA id l24sm1867915lfh.8.2021.10.05.01.26.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Oct 2021 01:26:56 -0700 (PDT) Date: Tue, 5 Oct 2021 08:26:55 +0000 From: Pierre-Marie de Rodat To: gcc-patches@gcc.gnu.org Cc: Corentin Gay Subject: [Ada] Include errno.h in QNX specific part of the signal handling Message-ID: <20211005082655.GA2693770@adacore.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="/04w6evG8XlLl3ft" Content-Disposition: inline X-Spam-Status: No, score=-13.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2021 08:26:59 -0000 --/04w6evG8XlLl3ft Content-Type: text/plain; charset=us-ascii Content-Disposition: inline To get access to the errno variable, we need to include errno.h. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * init.c (QNX): Add #include errno.h. --/04w6evG8XlLl3ft Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="patch.diff" diff --git a/gcc/ada/init.c b/gcc/ada/init.c --- a/gcc/ada/init.c +++ b/gcc/ada/init.c @@ -2551,6 +2551,7 @@ __gnat_install_handler (void) #include #include #include +#include #include "sigtramp.h" void --/04w6evG8XlLl3ft--