aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/tap.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/tap.h b/core/tap.h
index 2a16ef6..390eb6f 100644
--- a/core/tap.h
+++ b/core/tap.h
@@ -36,6 +36,15 @@ static int exit_status() {
} \
} while (0)
+#include <time.h>
+time_t time(time_t *p)
+{
+ static time_t value;
+ value++;
+ if (p) *p = value;
+ return value;
+}
+
#else
#include <ccan/tap/tap.h>
#define TIS_INTERPRETER 0