From patchwork Tue Feb 9 19:18:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Law X-Patchwork-Id: 581046 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 E0AE9140CB1 for ; Wed, 10 Feb 2016 06:18:44 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=NnQTPCc9; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=ZY1xvdZ8JuQ+cXdR+OQgkTEUcmsJXbEac5D3LIw2knjeXkOUfx FzjjcOemsrfGiSZwBWxxVcvKxZaGPCmgAnhRzvYL5RoMAQTQSjJGEz9ahCOxmOle +GNkodXuyU5kqdGmfybN1NGhltM5glQXcB8+ddVMYaDPpV11WQhoyO/0k= 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:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=nzkdXIphivdMJ+c8gQGLlyWFhc0=; b=NnQTPCc9sZFLR21QsnO5 QNB963V3K7XVbcL18EPpuZcpxhgyWt8/5WcjoOhMROFAfihY4rD7AmvUqx29LGnV ijWcIaew6aP26aKUleKuvniTF4h978iB2OVUUMty67HENoHMXJBVgG/jLELjwmBI jrAbOgG7VRi765W1WLKIrhM= Received: (qmail 9837 invoked by alias); 9 Feb 2016 19:18:36 -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 9800 invoked by uid 89); 9 Feb 2016 19:18:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1393, 566 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 09 Feb 2016 19:18:34 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 2CB598F2E4 for ; Tue, 9 Feb 2016 19:18:33 +0000 (UTC) Received: from slagheap.utah.redhat.com (ovpn-113-84.phx2.redhat.com [10.3.113.84]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u19JIWaO019122 for ; Tue, 9 Feb 2016 14:18:32 -0500 To: gcc-patches@gcc.gnu.org From: Jeff Law Subject: [PATCH] [target/65867] FIx bootstrap failure on mingw32 Message-ID: <56BA3B88.2000700@redhat.com> Date: Tue, 9 Feb 2016 12:18:32 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 X-IsSubscribed: yes This was actually approved by Kai in the BZ eons ago. I've installed the patch on the trunk. Essentially there's a missing #include for mingw32 that prevents libssp from building. Jeff commit d48dbf6568626d96cc948d8aaf7ef0265689a213 Author: law Date: Tue Feb 9 19:16:30 2016 +0000 2015-04-25 Daniel Starke PR target/65867 * ssp.c: Added wincrypt.h include for Windows targets. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233253 138bc75d-0d04-0410-961f-82ee72b054a4 diff --git a/libssp/ChangeLog b/libssp/ChangeLog index 47e7339..036257f 100644 --- a/libssp/ChangeLog +++ b/libssp/ChangeLog @@ -1,3 +1,8 @@ +2015-04-25 Daniel Starke + + PR target/65867 + * ssp.c: Added wincrypt.h include for Windows targets. + 2015-05-13 Michael Haubenwallner * Makefile.in: Regenerated with automake-1.11.6. diff --git a/libssp/ssp.c b/libssp/ssp.c index 38e3ec8..69805bc 100644 --- a/libssp/ssp.c +++ b/libssp/ssp.c @@ -56,6 +56,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see to the console using "CONOUT$" */ #if defined (_WIN32) && !defined (__CYGWIN__) #include +#include # define _PATH_TTY "CONOUT$" #else # define _PATH_TTY "/dev/tty"