diff options
author | carmen rocco <ix9@users.sourceforge.net> | 2004-08-23 03:48:57 +0000 |
---|---|---|
committer | carmen rocco <ix9@users.sourceforge.net> | 2004-08-23 03:48:57 +0000 |
commit | 9e2ddf8e4cfe2c31fb2733670761c72948238331 (patch) | |
tree | 1a124872169d92f08fe067142fabdc9c56254fbb /signal | |
parent | f866ded1b9d248e09a032c346f4588e374caedc5 (diff) |
hd-clear (NT)
svn path=/trunk/externals/ggee/; revision=1971
Diffstat (limited to 'signal')
-rwxr-xr-x | signal/rtin~.c | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/signal/rtin~.c b/signal/rtin~.c index d086003..5338137 100755 --- a/signal/rtin~.c +++ b/signal/rtin~.c @@ -1,15 +1,20 @@ /* (C) Guenter Geiger <geiger@epy.co.at> */
-
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <fcntl.h>
- #include <sys/time.h>
- #include <unistd.h>
-
-// int gettimeofday(struct timeval *tv, struct timezone *tz);
-
-
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <sys/time.h>
+#include <unistd.h>
+
+#ifdef NT
+#include <sys/timeb.h>
+void gettimeofday(struct timeval* t,void* timezone)
+{ struct timeb timebuffer;
+ ftime( &timebuffer );
+ t->tv_sec=timebuffer.time;
+ t->tv_usec=1000*timebuffer.millitm;
+}
+#endif
#include "math.h"
#include <m_pd.h>
|