From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16507 invoked by alias); 28 Oct 2011 13:18:30 -0000 Received: (qmail 16149 invoked by uid 22791); 28 Oct 2011 13:18:26 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MISSING_HEADERS,RCVD_IN_DNSWL_LOW,TW_SM,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-iy0-f169.google.com (HELO mail-iy0-f169.google.com) (209.85.210.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 28 Oct 2011 13:18:09 +0000 Received: by iagf6 with SMTP id f6so5576732iag.0 for ; Fri, 28 Oct 2011 06:18:09 -0700 (PDT) Received: by 10.231.50.143 with SMTP id z15mr1030927ibf.91.1319807889051; Fri, 28 Oct 2011 06:18:09 -0700 (PDT) Received: from [192.168.1.102] ([60.186.228.95]) by mx.google.com with ESMTPS id jm11sm12489329ibb.1.2011.10.28.06.18.01 (version=SSLv3 cipher=OTHER); Fri, 28 Oct 2011 06:18:07 -0700 (PDT) Message-ID: <4EAAAC48.6050209@gmail.com> Date: Fri, 28 Oct 2011 13:33:00 -0000 From: asmwarrior User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 Newsgroups: gmane.comp.gdb.patches CC: Pedro Alves , gdb-patches@sourceware.org, Alen Skondro , Xun Xun Subject: Re: [PATCH] ETIMEDOUT already defined in mingw64 library References: <201110280950.58238.pedro@codesourcery.com> <4EAAAA3B.7090506@gmail.com> In-Reply-To: <4EAAAA3B.7090506@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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/msg00761.txt.bz2 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 > > BTW: WSAETIMEDOUT can be found in two places: i686-w64-mingw32\include\psdk_inc\_wsa_errnos.h line 43: #define WSAETIMEDOUT (WSABASEERR + 60 ) and WSABASEERR is defined by: #define WSABASEERR 10000 In another place: i686-w64-mingw32\include\winerror.h line 1646 #define WSAETIMEDOUT 10060L 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.