chiark / gitweb /
GNU Standards makefile targets.
[adns.git] / regress / hcommon.c.m4
index 5d6f471389e3cd14b40c0e3bd3a63f5a59df4676..9610afc788a28588cc73b6772f3ebf6ca15a249e 100644 (file)
@@ -33,6 +33,7 @@ m4_include(hmacros.i4)
 
 vbuf vb;
 FILE *Toutputfile= 0;
+struct timeval currenttime;
 
 const struct Terrno Terrnos[]= {
   { "EAGAIN",                    EAGAIN                       },
@@ -50,6 +51,12 @@ const struct Terrno Terrnos[]= {
 
 static vbuf vbw;
 
+int Hgettimeofday(struct timeval *tv, struct timezone *tz) {
+  Tmust("gettimeofday","tz",!tz);
+  *tv= currenttime;
+  return 0;
+}
+
 int Hwritev(int fd, const struct iovec *vector, size_t count) {
   size_t i;