[Nut-upsdev] windows_port NUT branch
Frédéric Bohé
fredericbohe at eaton.com
Fri Dec 17 09:26:09 UTC 2010
On jeu., 2010-12-16 at 16:47 +0300, Paul Fertser wrote:
> On Thu, Dec 16, 2010 at 01:16:33PM +0100, Frédéric Bohé wrote:
> > > This adds defines for usleep (windows lacks that) and also missing
> > > define for SVC_EVENT.
> >
> > I have no problem compiling with usleep here. Can you give me the error
> > string you get on this ?
>
> Undefined reference of course. Ok, where does your usleep implementation come
> from? In fact i tried to google about it but wasn't convinced that newer mingw
> has that. Is it really available from mingw or do i need some additional
> library?
I have usleep in unistd.h :
#if !defined __NO_ISOCEXT
#include <sys/types.h> /* For useconds_t. */
int __cdecl __MINGW_NOTHROW usleep(useconds_t useconds);
#endif /* Not __NO_ISOCEXT */
The key seems to be __NO_ISOCEXT here.
Can you try to add "#ifdef __NO_ISOCEXT" around your usleep definition.
If it works I could add a proper workaround for this in the code.
Thanks
--------------------------------------------------------------------------
More information about the Nut-upsdev
mailing list