X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=adns.git;a=blobdiff_plain;f=regress%2Fhcommon.c.m4;h=9610afc788a28588cc73b6772f3ebf6ca15a249e;hp=5d6f471389e3cd14b40c0e3bd3a63f5a59df4676;hb=a8ab18db9dc20eded1a03249a38d9e23732af99d;hpb=70a778e57fbc29a2d2bc8976745a18f4edd1a03a diff --git a/regress/hcommon.c.m4 b/regress/hcommon.c.m4 index 5d6f471..9610afc 100644 --- a/regress/hcommon.c.m4 +++ b/regress/hcommon.c.m4 @@ -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;