conflicting types for `usleep' in wine/port.h and libwine/port.c

Steven Edwards Steven_Ed4153 at
Tue May 14 18:10:39 CDT 2002

I don't guess we are building libwine.dll on mingw but I was playing
with it just the same when I came to this. Is this to be expected?

gcc -mno-cygwin -c -I. -I. -I../include -I../include  -D__MINGW__
INE_NOWINSOCK -Wall -mpreferred-stack-boundary=2 -D__WINE__
al/lib/wine\"" -D_REENTRANT  -o port.o port.c
port.c:65: conflicting types for `usleep'
../include/wine/port.h:299: previous declaration of `usleep'

int usleep (unsigned int useconds);
#endif /* !defined(HAVE_USLEEP) */

unsigned int usleep (unsigned int useconds)
#if defined(__EMX__)
    return 0;
#elif defined(__BEOS__)
    return snooze(useconds);
#elif defined(HAVE_SELECT)
    struct timeval delay;

    delay.tv_sec = useconds / 1000000;
    delay.tv_usec = useconds % 1000000;

    select( 0, 0, 0, 0, &delay );
    return 0;
#else /* defined(__EMX__) || defined(__BEOS__) || defined(HAVE_SELECT)
    errno = ENOSYS;
    return -1;
#endif /* defined(__EMX__) || defined(__BEOS__) || defined(HAVE_SELECT)
#endif /* HAVE_USLEEP */

"Every revolution was once a thought in one man's mind"
- Ralph Waldo Emerson 

More information about the wine-devel mailing list