From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11495 invoked by alias); 28 Oct 2011 13:33:41 -0000 Received: (qmail 11476 invoked by uid 22791); 28 Oct 2011 13:33:39 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,TW_SM X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 28 Oct 2011 13:33:25 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=EU1-MAIL.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1RJmYm-0001Bd-2Z from pedro_alves@mentor.com ; Fri, 28 Oct 2011 06:33:24 -0700 Received: from scottsdale.localnet ([172.16.63.104]) by EU1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 28 Oct 2011 14:33:22 +0100 From: Pedro Alves To: asmwarrior Subject: Re: [PATCH] ETIMEDOUT already defined in mingw64 library Date: Fri, 28 Oct 2011 14:02:00 -0000 User-Agent: KMail/1.13.6 (Linux/2.6.38-11-generic; KDE/4.7.1; x86_64; ; ) Cc: gdb-patches@sourceware.org, Alen Skondro , Xun Xun References: <4EAAAA3B.7090506@gmail.com> <4EAAAC48.6050209@gmail.com> In-Reply-To: <4EAAAC48.6050209@gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201110281433.18932.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-10/txt/msg00762.txt.bz2 On Friday 28 October 2011 14:21:12, asmwarrior wrote: > On 2011-10-28 21:12, asmwarrior wrote: > > On 2011-10-28 16:50, Pedro Alves wrote: > >> OOC, if you're getting an error, it's because it's defined > >> to something different. What is is defined to? > > In file: > > i686-w64-mingw32\include\errno.h > > > > It was defined as below: > > > > /* Defined as WSAETIMEDOUT. */ > > #ifndef ETIMEDOUT > > #define ETIMEDOUT 10060 > > #endif Thanks. > I'm not sure which header file does \gdb\ser-tcp.c use. > > So, it looks like all the ETIMEDOUT definition is actually the same value. Alright. gcc complains because the definitions aren't textually the same, even though they expand to the same. I've applied Alen's patch, with this ChangeLog entry: 2011-10-28 Alen Skondro * ser-tcp.c [USE_WIN32API] (ETIMEOUT): Don't define if already defined. Thanks. -- Pedro Alves