diff options
author | bustico | 2013-06-20 17:23:52 +0000 |
---|---|---|
committer | bustico | 2013-06-20 17:23:52 +0000 |
commit | 1fb1bb59c936ea4d752a12db3d73f490e5b7b6a1 (patch) | |
tree | 011808cf654f382692420188af30e71934180357 /src/timer.h | |
parent | bd89957287441872706432d1e283091b4e5cdbc8 (diff) | |
download | ivy-c-1fb1bb59c936ea4d752a12db3d73f490e5b7b6a1.zip ivy-c-1fb1bb59c936ea4d752a12db3d73f490e5b7b6a1.tar.gz ivy-c-1fb1bb59c936ea4d752a12db3d73f490e5b7b6a1.tar.bz2 ivy-c-1fb1bb59c936ea4d752a12db3d73f490e5b7b6a1.tar.xz |
initial windows support for ping/pong implementation, to be tested and validated
Diffstat (limited to 'src/timer.h')
-rw-r--r-- | src/timer.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/timer.h b/src/timer.h index 6e31dd7..accad5b 100644 --- a/src/timer.h +++ b/src/timer.h @@ -34,6 +34,18 @@ void TimerModify( TimerId id, long timeout ); void TimerRemove( TimerId id ); + + // implemetation of gettimeofday for windows +#ifdef WIN32 +#include "time.h" +struct timezone +{ + int tz_minuteswest; /* minutes W of Greenwich */ + int tz_dsttime; /* type of dst correction */ +}; +int gettimeofday(struct timeval *tv, struct timezone *tz); +#endif + /* Interface avec select */ struct timeval *TimerGetSmallestTimeout(); |