4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-16 03:19:54 +08:00
2000-02-17 19:39:52 +00:00

21 lines
391 B
C

/* connector for gettimeofday */
#include <reent.h>
#include <sys/types.h>
#include <sys/times.h>
struct timeval;
struct timezone;
int
gettimeofday (ptimeval, ptimezone)
struct timeval *ptimeval;
struct timezone *ptimezone;
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
return _gettimeofday_r (_REENT, ptimeval, ptimezone);
#else
return _gettimeofday (ptimeval, ptimezone);
#endif
}