From de0103eee85fcce8cd13aa604bfcd67901c5fa7a Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 29 Dec 2010 21:09:16 +0000 Subject: Add timerisset/timerclear macros svn path=/toolchains/; revision=11146 --- .../recipes/patches/clib2/clib2.include.sys.time.h.p | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 m68k-unknown-amigaos/recipes/patches/clib2/clib2.include.sys.time.h.p (limited to 'm68k-unknown-amigaos/recipes/patches/clib2/clib2.include.sys.time.h.p') diff --git a/m68k-unknown-amigaos/recipes/patches/clib2/clib2.include.sys.time.h.p b/m68k-unknown-amigaos/recipes/patches/clib2/clib2.include.sys.time.h.p new file mode 100644 index 0000000..f81ed89 --- /dev/null +++ b/m68k-unknown-amigaos/recipes/patches/clib2/clib2.include.sys.time.h.p @@ -0,0 +1,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 */ -- cgit v1.2.3