Displaying 2 results from an estimated 2 matches for "__mingw_sleep".
2015 Jul 04
2
Trouble installing xapian on windows
...eep(unsigned
int)'
sleep(unsigned int seconds)
^
In file included from ./common/safeunistd.h:25:0,
from api/compactor.cc:39:
c:\mingw\include\unistd.h:142:10: error: 'unsigned int sleep(unsigned int)' prev
iously defined here
unsigned sleep( unsigned period ){ return __mingw_sleep( period, 0 ); }
^
make[2]: *** [api/compactor.lo] Error 1
make[2]: Leaving directory `/c/temp/xapian/xapian-core-1.2.21'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/temp/xapian/xapian-core-1.2.21'
make: *** [all] Error 2
2015 Jul 05
0
Trouble installing xapian on windows
...unsigned int seconds)
> ^
> In file included from ./common/safeunistd.h:25:0,
> from api/compactor.cc:39:
> c:\mingw\include\unistd.h:142:10: error: 'unsigned int sleep(unsigned int)' prev
> iously defined here
> unsigned sleep( unsigned period ){ return __mingw_sleep( period, 0 ); }
> ^
I guess this is either mingw vs mingw-w64 difference, or a version
difference, as the headers of the version that the buildbot has define
sleep() rather differently.
A quick local fix which should make it work is to modify
common/safeunistd.h and change:
#ifdef _...