summaryrefslogtreecommitdiff
path: root/m68k-unknown-amigaos/recipes/patches/clib2/clib2.include.sys.time.h.p
blob: f81ed89c0e3e4d0b3b07e8e2c00344301fedab3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Index: include/sys/time.h
===================================================================
RCS file: /cvsroot/clib2/library/include/sys/time.h,v
retrieving revision 1.11
diff -u -r1.11 time.h
--- include/sys/time.h	8 Jan 2006 12:06:14 -0000	1.11
+++ include/sys/time.h	29 Dec 2010 21:08:36 -0000
@@ -142,6 +142,11 @@
 
 /****************************************************************************/
 
+#define timerisset(tvp) ((tvp)->tv_sec != 0 || (tvp)->tv_usec != 0)
+#define timerclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0)
+
+/****************************************************************************/
+
 #ifdef __cplusplus
 }
 #endif /* __cplusplus */