From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4263 invoked by alias); 29 Mar 2011 12:36:43 -0000 Received: (qmail 4228 invoked by uid 22791); 29 Mar 2011 12:36:42 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (140.186.70.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 29 Mar 2011 12:36:36 +0000 Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Q4Y9z-0004UD-1Y; Tue, 29 Mar 2011 08:36:35 -0400 Date: Tue, 29 Mar 2011 13:10:00 -0000 Message-Id: From: Eli Zaretskii To: "Pierre Muller" CC: gdb-patches@sourceware.org In-reply-to: <004701cbede4$0ee18c20$2ca4a460$@muller@ics-cnrs.unistra.fr> (pierre.muller@ics-cnrs.unistra.fr) Subject: Re: [RFC] Missing sleep function for mingw hosts Reply-to: Eli Zaretskii References: <004701cbede4$0ee18c20$2ca4a460$@muller@ics-cnrs.unistra.fr> 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-03/txt/msg01169.txt.bz2 > From: "Pierre Muller" > Date: Tue, 29 Mar 2011 09:36:46 +0200 > > mingw does not have a sleep function in its library. > This prevents currently successful compilation of > mingw64 with --enable-targets=all option. You say "mingw64" -- does that mean it does compile with mingw32? If so, how come it fails with the 64-bit build? > I found that there is a substitute for sleep in gnulib: > http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=lib/sleep.c;hb=d60 > f3b0c6b0f93a601acd1cfd3923f94ca05abb0 > > What is the rule to add new parts into gnulib subdirectory? > Would inclusion of gnulib sleep.c source code > be possible to fix the above problem? I'd rather we had a replacement in win32-nat.c, instead of importing gobs of gnulib stuff needed to provide such a trivial replacement. gnulib is GPL, so we can simply copy the code into our sources.