[flashrom] [PATCH 3/3] udelay.c: usleep() not found in MinGW, used Sleep()

Maksim Kuleshov mmcx at mail.ru
Wed Apr 3 00:05:37 CEST 2013


I use  i586-mingw32msvc-gcc on Debian.

$ make CC=i586-mingw32msvc-gcc
cc1: warnings being treated as errors
buspirate_spi.c: In function ‘buspirate_spi_init’:
buspirate_spi.c:289: warning: implicit declaration of function ‘usleep’

$ i586-mingw32msvc-gcc --v
Using built-in specs.
Target: i586-mingw32msvc
Configured with: /home/ron/devel/debian/mingw32/mingw32-4.2.1.dfsg/build_dir/src/gcc-4.2.1-2-dfsg/configure -v --prefix=/usr --target=i586-mingw32msvc --enable-languages=c,c++ --enable-threads --enable-sjlj-exceptions --disable-multilib --enable-version-specific-runtime-libs
Thread model: win32
gcc version 4.2.1-sjlj (mingw32-2)

$ dpkg -l 'mingw*'
ii  mingw32                           4.2.1.dfsg-2          amd64                 Minimalist GNU win32 (cross) compiler
ii  mingw32-binutils                  2.20-0.2              amd64                 Minimalist GNU win32 (cross) binutils
ii  mingw32-runtime                   3.13-1                all                   Minimalist GNU win32 (cross) runtime

> -----Original Message-----
> Date: Tue, 2 Apr 2013 22:58:34 +0200
> From: Stefan Tauner <stefan.tauner at student.tuwien.ac.at>
> To: Maksim Kuleshov <mmcx at ucs.ru>
> Cc: flashrom at flashrom.org
> Subject: Re: [flashrom] [PATCH 3/3] udelay.c: usleep() not found in MinGW, used Sleep()
> 
> On Mon, 1 Apr 2013 19:08:30 +0400
> Maksim Kuleshov <mmcx at ucs.ru> wrote:
> 
> > From 62ffe98744aba140e5959635abb46c32a47887d2 Mon Sep 17 00:00:00 2001
> > From: Maksim Kuleshov <mmcx at mail.ru>
> > Date: Mon, 1 Apr 2013 19:03:43 +0400
> > Subject: [PATCH 3/3] udelay.c: usleep() not found in MinGW, used Sleep()
> > 
> > Signed-off-by: Maksim Kuleshov <mmcx at mail.ru>
> 
> I don't think that we ever had a problem with that. (Please correct
> me... Idwer?). What version of MinGW are you using? What's your make
> command and what does it print as error?
> 
> -- 
> Kind regards/Mit freundlichen Grüßen, Stefan Tauner
> 
> _______________________________________________
> flashrom mailing list
> flashrom at flashrom.org
> http://www.flashrom.org/mailman/listinfo/flashrom


More information about the flashrom mailing list