home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / lucid / lemacs-19.6 / src / gettime.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-26  |  1.1 KB  |  42 lines

  1. /* Include the appropriate header files for things related to time.
  2.    The caller should include sys/socket.h before this file,
  3.    if the system has sockets.   */
  4.  
  5. #ifndef _EMACS_GETTIME_H_
  6. #define _EMACS_GETTIME_H_
  7.  
  8. #ifdef IRIS
  9. #include <sys/sysmacros.h>    /* for "minor" */
  10. #include <sys/time.h>
  11. #else
  12. #ifdef UNIPLUS
  13. #include <sys/time.h>
  14.  
  15. #else /* not IRIS, not UNIPLUS */
  16. #ifdef HAVE_TIMEVAL
  17. /* _h_BSDTYPES is checked because on ISC unix, socket.h includes
  18.    both time.h and sys/time.h, and the latter file is protected
  19.    from repeated inclusion.  */
  20. #if defined(USG) && !defined(AIX) && !defined(_h_BSDTYPES) && !defined(USG_SYS_TIME) && !defined(uts)
  21. #include <time.h>
  22. #else /* AIX or USG_SYS_TIME, or not USG */
  23. #include <sys/time.h>
  24. #endif /* AIX or USG_SYS_TIME, or not USG */
  25. #endif /* HAVE_TIMEVAL */
  26. #endif /* not UNIPLUS */
  27. #endif /* not IRIS */
  28.  
  29. #ifdef BAT68K
  30. #include <sys/time.h>   /* In addition to time.h.  */
  31. #endif
  32.  
  33. #ifdef AIX
  34. #include <sys/time.h>   /* In addition to time.h.  */
  35. #endif
  36.  
  37. #ifdef DPX2
  38. #include <sys/time.h>
  39. #endif
  40.  
  41. #endif /* _EMACS_GETTIME_H_ */
  42.