view nt/inc/sys/time.h @ 404:2f8bb876ab1d r21-2-32

Import from CVS: tag r21-2-32
author cvs
date Mon, 13 Aug 2007 11:16:07 +0200
parents 7d55a9ba150c
children
line wrap: on
line source

/*
 * sys/time.h doesn't exist on NT
 */

#include <time.h>

#ifdef __MINGW32__
#include <winsock.h>
#else
struct timeval 
  {
    long tv_sec;	/* seconds */
    long tv_usec;	/* microseconds */
  };
#endif

struct timezone 
  {
    int	tz_minuteswest;	/* minutes west of Greenwich */
    int	tz_dsttime;	/* type of dst correction */
  };

#ifndef HAVE_X_WINDOWS
/* X11R6 on NT provides the single parameter version of this command */
void gettimeofday (struct timeval *, struct timezone *);
#endif

/* end of sys/time.h */