forked from Imagelibrary/rtems
__gettod.c: Fix missing prototype warnings
This commit is contained in:
@@ -19,7 +19,13 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(RTEMS_NEWLIB)
|
#if defined(RTEMS_NEWLIB)
|
||||||
|
/*
|
||||||
|
* Needed to get the prototype for the newlib helper method
|
||||||
|
*/
|
||||||
|
#define _COMPILING_NEWLIB
|
||||||
|
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
#include <reent.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <rtems/score/todimpl.h>
|
#include <rtems/score/todimpl.h>
|
||||||
#include <rtems/seterr.h>
|
#include <rtems/seterr.h>
|
||||||
@@ -66,9 +72,10 @@ int gettimeofday(
|
|||||||
int _gettimeofday_r(
|
int _gettimeofday_r(
|
||||||
struct _reent *ignored_reentrancy_stuff __attribute__((unused)),
|
struct _reent *ignored_reentrancy_stuff __attribute__((unused)),
|
||||||
struct timeval *tp,
|
struct timeval *tp,
|
||||||
struct timezone *tzp
|
void *__tz
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
struct timezone *tzp = __tz;
|
||||||
return gettimeofday( tp, tzp );
|
return gettimeofday( tp, tzp );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -79,10 +86,12 @@ int _gettimeofday_r(
|
|||||||
* "System call" version
|
* "System call" version
|
||||||
*/
|
*/
|
||||||
int _gettimeofday(
|
int _gettimeofday(
|
||||||
struct timeval *tp,
|
struct timeval *tp,
|
||||||
struct timezone *tzp
|
void *__tz
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
struct timezone *tzp = __tz;
|
||||||
|
|
||||||
return gettimeofday( tp, tzp );
|
return gettimeofday( tp, tzp );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user