home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast.iso / dv_x / gs261dvx.zip / time_.h < prev   
C/C++ Source or Header  |  1993-06-19  |  2KB  |  55 lines

  1. /* Copyright (C) 1991, 1992 Aladdin Enterprises.  All rights reserved.
  2.  
  3. This file is part of Ghostscript.
  4.  
  5. Ghostscript is distributed in the hope that it will be useful, but
  6. WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  7. to anyone for the consequences of using it or for whether it serves any
  8. particular purpose or works at all, unless he says so in writing.  Refer
  9. to the Ghostscript General Public License for full details.
  10.  
  11. Everyone is granted permission to copy, modify and redistribute
  12. Ghostscript, but only under the conditions described in the Ghostscript
  13. General Public License.  A copy of this license is supposed to have been
  14. given to you along with Ghostscript so you can know your rights and
  15. responsibilities.  It should be in a file named COPYING.  Among other
  16. things, the copyright notice and this notice must be preserved on all
  17. copies.  */
  18.  
  19. /* time_.h */
  20. /* Generic substitute for Unix sys/time.h */
  21.  
  22. /* We must include std.h before any file that includes sys/types.h. */
  23. #include "std.h"
  24.  
  25. /* Some System V environments don't include sys/time.h. */
  26. /* We detect this in the makefile rules for gp_sysv.c and gp_unix.c, */
  27. /* and compile with the NOSYSTIME macro defined.  What a kludge! */
  28. #ifdef NOSYSTIME
  29. struct timeval {
  30.     long tv_sec, tv_usec;
  31. };
  32. struct timezone {
  33.     int tz_minuteswest, tz_dsttime;
  34. };
  35. #else
  36. #  include <sys/time.h>
  37. #endif
  38.  
  39. #ifdef __DVX__
  40. struct timezone {
  41.     int tz_minuteswest, tz_dsttime;
  42. };
  43. #endif
  44.  
  45. #if defined(AUX) || defined(_IBMR2) || defined(SYSV) || defined(SVR4)        /* A/UX, IBM RS/6000, AIX 3.n, System V.4 */
  46. #  include <time.h>
  47. #endif
  48.  
  49. #if defined(ultrix) && defined(mips)
  50. /* Apparently some versions of Ultrix for the DECstation include */
  51. /* time_t in sys/time.h, and some don't.  If you get errors */
  52. /* compiling gp_unix.c, uncomment the next line. */
  53. /*    typedef    int    time_t;    */
  54. #endif
  55.