xref: /openbsd-src/gnu/usr.bin/cvs/lib/xtime.h (revision e79e306285af588019b14bb4031379f450685a93)
1*43c1707eStholo /* This program is free software; you can redistribute it and/or modify
2*43c1707eStholo    it under the terms of the GNU General Public License as published by
3*43c1707eStholo    the Free Software Foundation; either version 2, or (at your option)
4*43c1707eStholo    any later version.
5*43c1707eStholo 
6*43c1707eStholo    This program is distributed in the hope that it will be useful,
7*43c1707eStholo    but WITHOUT ANY WARRANTY; without even the implied warranty of
8*43c1707eStholo    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
9*43c1707eStholo    GNU General Public License for more details.  */
10*43c1707eStholo 
11*43c1707eStholo /* This file simply performs the include magic necessary for using time
12*43c1707eStholo  * functions
13*43c1707eStholo  */
14*43c1707eStholo 
15*43c1707eStholo #ifdef vms
16*43c1707eStholo # include <time.h>
17*43c1707eStholo #else /* vms */
18*43c1707eStholo 
19*43c1707eStholo # if TIME_WITH_SYS_TIME
20*43c1707eStholo #   include <sys/time.h>
21*43c1707eStholo #   include <time.h>
22*43c1707eStholo # else /* TIME_WITH_SYS_TIME */
23*43c1707eStholo #   if HAVE_SYS_TIME_H
24*43c1707eStholo #     include <sys/time.h>
25*43c1707eStholo #   else /* HAVE_SYS_TIME_H */
26*43c1707eStholo #     include <time.h>
27*43c1707eStholo #   endif /* !HAVE_SYS_TIME_H */
28*43c1707eStholo # endif /* !TIME_WITH_SYS_TIME */
29*43c1707eStholo 
30*43c1707eStholo # ifdef timezone
31*43c1707eStholo #   undef timezone /* needed for sgi */
32*43c1707eStholo # endif /* timezone */
33*43c1707eStholo 
34*43c1707eStholo # if !defined(HAVE_FTIME) && !defined(HAVE_TIMEZONE)
35*43c1707eStholo extern long timezone;
36*43c1707eStholo # endif /* !defined(HAVE_FTIME) && !defined(HAVE_TIMEZONE) */
37*43c1707eStholo 
38*43c1707eStholo #endif /* !vms */
39