From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20999 invoked by alias); 25 Mar 2013 07:52:27 -0000 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 Received: (qmail 20981 invoked by uid 89); 25 Mar 2013 07:52:14 -0000 X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.1 Received: from mtaout20.012.net.il (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 25 Mar 2013 07:52:10 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MK700700HQFKI00@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Mon, 25 Mar 2013 09:51:54 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MK7007W0HUHDX60@a-mtaout20.012.net.il>; Mon, 25 Mar 2013 09:51:54 +0200 (IST) Date: Mon, 25 Mar 2013 08:39:00 -0000 From: Eli Zaretskii Subject: Re: [MinGW-w64]Build gdb/ctf.c failed In-reply-to: <514FFED6.5070708@codesourcery.com> To: Yao Qi Cc: asmwarrior@gmail.com, tromey@redhat.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83ip4f3oik.fsf@gnu.org> References: <83ip4s4ixc.fsf@gnu.org> <1363407692-18959-1-git-send-email-yao@codesourcery.com> <1363407692-18959-4-git-send-email-yao@codesourcery.com> <51492077.30307@codesourcery.com> <83sj3qyogk.fsf@gnu.org> <87vc8m7z1d.fsf@fleche.redhat.com> <514FA117.9030604@gmail.com> <514FFED6.5070708@codesourcery.com> X-SW-Source: 2013-03/txt/msg00915.txt.bz2 > Date: Mon, 25 Mar 2013 15:37:58 +0800 > From: Yao Qi > CC: Tom Tromey , Eli Zaretskii , > > I checked the msdn, and it says that "_mkdir" should be in . > http://msdn.microsoft.com/en-us/library/2fkk4dzw(v=vs.80).aspx > so looks mingw-w64 doesn't do something wrong. > > I am not familiar with mingw and mingw-64, and I'd like people familiar > with mingw (Eli?) suggest what is appropriate fix to this issue. Maybe, > we either have to include (with autconf checking) or import > mkdir module in gnulib. This isn't about _mkdir, this is about mkdir. Is mkdir declared in MinGW64 unistd.h? If so, can you please show its declaration from unistd.h? Also, what other headers are included in MinGW64 unistd.h? I dislike using Windows-specific headers in general source files. MinGW unistd.h (which is absent from MS SDK's) was created for that very purpose. If MinGW64 is breaking that, IMO it's a MinGW64 bug that needs to be reported to them, while we look for the cleanest way of fixing this annoyance.