|
From: | Dan J |
Subject: | RE: [Discuss-gnuradio] Make fail...config.h:467: error: 'usleep' was not declared in this scope |
Date: | Thu, 1 Jan 2009 22:31:07 -0500 |
Don, Thanks for the input. The result of "fgrep -i sleep config.h" is: fgrep -i sleep config.h /* Define to 1 if you have the `nanosleep' function. */ /* #undef HAVE_NANOSLEEP */ /* Define to 1 if you have the `sleep' function. */ /* #undef HAVE_SLEEP */ /* Define to 1 if you have win32 Sleep */ #define HAVE_SSLEEP 1 /* Define to 1 if you have the `usleep' function. */ #define HAVE_USLEEP 1 #ifndef HAVE_USLEEP int usleep(unsigned long usec); /* SUSv2 */ #ifndef HAVE_NANOSLEEP static inline int nanosleep(const struct timespec *req, struct timespec *rem) { return usleep(req->tv_sec*1000000+req->tv_nsec/1000); } #if defined(HAVE_SSLEEP) && !defined(HAVE_SLEEP) /* TODO: what about SleepEx? */ static inline unsigned int sleep (unsigned int nb_sec) { Sleep(nb_sec*1000); return 0; } 1) I only installed MinGW yesterday and used MinGW-5.1.4.exe. 2) Using w32api3.11 Thanks, Dan Send e-mail anywhere. No map, no compass. Get your HotmailĀ® account now. |
[Prev in Thread] | Current Thread | [Next in Thread] |