Commit cb8e547d authored by Octavio Delgadillo's avatar Octavio Delgadillo
Browse files

Restore change by Huber: [fix] sleep functions must have libc signatures

parent 8d71e68a
......@@ -75,8 +75,8 @@ extern "C" {
(timeout>0) ? 0 : -1; \
} )
void usleep(unsigned long useconds);
void sleep(unsigned int seconds);
int usleep(unsigned long useconds);
unsigned int sleep(unsigned int seconds);
int usleep_R5(unsigned long useconds);
unsigned sleep_R5(unsigned int seconds);
int usleep_MB(unsigned long useconds);
......
......@@ -39,7 +39,7 @@
* @note none
*
*****************************************************************************/
void sleep(unsigned int seconds)
unsigned int sleep(unsigned int seconds)
{
#if defined (ARMR5)
sleep_R5(seconds);
......@@ -65,7 +65,7 @@
* @note none
*
*****************************************************************************/
void usleep(unsigned long useconds)
int usleep(unsigned long useconds)
{
#if defined (ARMR5)
usleep_R5(useconds);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment