mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-06 07:31:13 -08:00
Reported by ׃scar Fuentes in http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00699.html and in http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00707.html. nt/inc/ms-w32.h (USE_NO_MINGW_SETJMP_TWO_ARGS) [_W64]: Define to 1. For MinGW64, include sys/types.h and time.h. nt/inc/sys/time.h (struct timeval) [!_W64]: Guard definition with _W64. (struct timezone) [!_TIMEZONE_DEFINED]: Guard definition with _TIMEZONE_DEFINED. nt/addpm.c (_WIN32_IE) [_W64]: For MinGW64, don't define to 0x400. nt/inc/sys/stat.h: Remove _CRTIMP from prototypes of fstat, stat, lstat, and fstatat. lib-src/ntlib.c (struct timespec) [!_TIMEZONE_DEFINED]: Define the struct only if _TIMEZONE_DEFINED is not defined. src/w32term.c (WCRANGE, GLYPHSET): Don't define if _W64 is defined. src/w32.c (REPARSE_DATA_BUFFER): Guard with MAXIMUM_REPARSE_DATA_BUFFER_SIZE being defined.
44 lines
944 B
C
44 lines
944 B
C
#ifndef SYS_TIME_H_INCLUDED
|
|
#define SYS_TIME_H_INCLUDED
|
|
|
|
/*
|
|
* sys/time.h either doesn't exist on Windows, or doesn't necessarily
|
|
* have the below stuff.
|
|
*/
|
|
|
|
/* The guards are for MinGW64, which defines these structs on its
|
|
system headers which are included by ms-w32.h. */
|
|
#ifndef _W64
|
|
struct timeval
|
|
{
|
|
long tv_sec; /* seconds */
|
|
long tv_usec; /* microseconds */
|
|
};
|
|
#endif
|
|
|
|
#ifndef _TIMEZONE_DEFINED
|
|
struct timezone
|
|
{
|
|
int tz_minuteswest; /* minutes west of Greenwich */
|
|
int tz_dsttime; /* type of dst correction */
|
|
};
|
|
#endif
|
|
|
|
void gettimeofday (struct timeval *, struct timezone *);
|
|
|
|
#define ITIMER_REAL 0
|
|
#define ITIMER_PROF 1
|
|
|
|
struct itimerval
|
|
{
|
|
struct timeval it_interval; /* timer interval */
|
|
struct timeval it_value; /* current value */
|
|
};
|
|
|
|
int getitimer (int, struct itimerval *);
|
|
int setitimer (int, struct itimerval *, struct itimerval *);
|
|
|
|
#endif /* SYS_TIME_H_INCLUDED */
|
|
|
|
/* end of sys/time.h */
|
|
|