diff src/systime.h @ 223:2c611d1463a6 r20-4b10

Import from CVS: tag r20-4b10
author cvs
date Mon, 13 Aug 2007 10:10:54 +0200
parents 78f53ef88e17
children 677f6a0ee643
line wrap: on
line diff
--- a/src/systime.h	Mon Aug 13 10:10:03 2007 +0200
+++ b/src/systime.h	Mon Aug 13 10:10:54 2007 +0200
@@ -224,4 +224,22 @@
 extern void get_process_times (double *user_time, double *system_time,
 			       double *real_time);
 
+#ifdef _WIN32
+
+/* setitimer emulation for Win32 (see nt.c) */
+
+struct itimerval
+{
+  struct timeval it_value;
+  struct timeval it_interval;
+};
+
+int setitimer (int kind, const struct itimerval* itnew,
+	       struct itimerval* itold);
+
+#define ITIMER_REAL 1
+#define ITIMER_PROF 2
+
+#endif /* _WIN32 */
+
 #endif /* _XEMACS_SYSTIME_H_ */