diff options
Diffstat (limited to 'src/dbinc/clock.h')
-rw-r--r-- | src/dbinc/clock.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/dbinc/clock.h b/src/dbinc/clock.h index caeaee70..b2815ea2 100644 --- a/src/dbinc/clock.h +++ b/src/dbinc/clock.h @@ -1,7 +1,7 @@ /*- * See the file LICENSE for redistribution information. * - * Copyright (c) 2005, 2012 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2015 Oracle and/or its affiliates. All rights reserved. * * $Id$ */ @@ -125,6 +125,13 @@ typedef struct { timespecadd((vvp), &__tmp); \ } while (0) +#define TIMESPEC_SUB_DB_TIMEOUT(vvp, t) \ + do { \ + db_timespec __tmp; \ + DB_TIMEOUT_TO_TIMESPEC(t, &__tmp); \ + timespecsub((vvp), &__tmp); \ + } while (0) + #if defined(__cplusplus) } #endif |