X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=common-src%2Fclock.h;h=4da1cfca8757559e6f29bb2fbc65653b1e3cb89a;hb=eefb15c5c04acb3c75f0c704ea664feb1bbae75c;hp=8d3922e2dd2694e3f3d916c0409d9febb4776c1a;hpb=bde83ad58d800ae004caccab6531234272181da2;p=debian%2Famanda diff --git a/common-src/clock.h b/common-src/clock.h index 8d3922e..4da1cfc 100644 --- a/common-src/clock.h +++ b/common-src/clock.h @@ -25,7 +25,7 @@ * University of Maryland at College Park */ /* - * $Id: clock.h,v 1.2.2.2 2002/03/31 21:01:33 jrjackson Exp $ + * $Id: clock.h,v 1.5 2002/04/08 00:16:18 jrjackson Exp $ * * interface for timing functions */ @@ -44,6 +44,14 @@ typedef struct times_s { extern times_t times_zero, start_time; +#ifdef HAVE_TWO_ARG_GETTIMEOFDAY +# define amanda_timezone struct timezone +# define amanda_gettimeofday(x, y) gettimeofday((x), (y)) +#else +# define amanda_timezone int +# define amanda_gettimeofday(x, y) gettimeofday((x)) +#endif + void startclock P((void)); times_t stopclock P((void)); times_t curclock P((void));